!bot commands

By kddjoe on Jan 05, 2008

Here are some !bot command that I use in my bot. It's kinda useful for the bot owner. You just copy it to your bot remotes and you trigger the command by using ! for example : !deop (nick) .. and the Bot will deop the nick you intend to deop. Make sure that your bot is an operator and you must be an operator too. Please leave your comments. Thanks :)

on @*:TEXT:!voice*:#:{
  if ($nick !isop #) && ($1 == !voice)
  if ($2 ison $chan) && ($nick != $2) { .mode # +v $2- | halt }
}
on @*:TEXT:!devoice*:#:{
  if ($nick !isop #) && ($1 == !devoice)
  if ($2 ison $chan) && ($nick != $2) { .mode # -v $2- | halt }
}
on @*:TEXT:!deop*:#:{
  if ($nick !isop #) && ($1 == !deop)
  if ($2 ison $chan) && ($nick != $2) { .mode # -o $2- | halt }
}
on @*:TEXT:!op*:#:{
  if ($nick !isop #) && ($1 == !op)
  if ($2 ison $chan) && ($nick != $2) { .mode # +o $2- | halt }
}

:;;;; If u want to off your bot.. 

on 1:text:!offbot*:#:{
  if ($nick !isop #) && ($1 == !offbot)
  remote off | msg $chan BOT mode is 9OFF for 10mins!! 12Lite 4BOT | timer 1 600 remote on
}

:;;;;I put on 10 minutes timer for the remote to turn back on by itself

Comments

Sign in to comment.
[DX]   -  Apr 03, 2009
:;;;; If u want to off your bot.. 

on 1:text:!offbot*:#:{
  if ($nick !isop #) && ($1 == !offbot)
  remote off | msg $chan BOT mode is 9OFF for 10mins!! 12Lite 4BOT | timer 1 600 remote on
}

:;;;;I put on 10 minutes timer for the remote to turn back on by itself

Just need to wait 10 mins.

 Respond  
Jubbyjubbster   -  Apr 01, 2009

if you can turn it off how do you turn it back on ?? :(

 Respond  
kddjoe   -  Jan 13, 2008

G13AoUsTiS : Oh! no.. I forgot about that.. Well, it\'s been updated. Thanks for the info.
Korvin : Thanks for the info. It\'s great! I\'ll use it in my bot. :)
Thanks u guys.. anyway, I\'ll be posting new codes that I\'m using right now. I hope y\'all will give your opinion. :P

 Respond  
Korvin   -  Jan 10, 2008
on *:TEXT:*:#:{
  if ($nick isop #) {
    if ($1 == !voice) { .mode # +v $iif($2,$2,$nick) }
    if ($1 == !devoice) { .mode # -v $iif($2,$2,$nick) }
    if ($1 == !deop) { .mode # -o $iif($2,$2,$nick) }
    if ($1 == !op) { .mode # +o $iif($2,$2,$nick) }
    if ($1 == !offbot && %offbot) { 
      remote off 
      msg $chan BOT mode is 9OFF for 10mins!! 12Lite 4BOT 
      timer 1 600 remote on
    }
  }
}
alias offbot $iif($1 == on,set,unset) %offbot 4

does the same thing, and more.

and [dx] wtf? you should know better scripting than that o.O

 Respond  
G13AoUsTiS   -  Jan 07, 2008

if ($nick == $2) { .mode # -o $nick } this is useless :)

 on @*:TEXT:!voice*:#:{
  if ($nick !isop #) { halt }
  if ($2 ison $chan) { .mode # +v $2- | halt }
}

shorter and doing the same thing:)

 Respond  
kddjoe   -  Jan 06, 2008

Oww yeah.. I never thought of that before [DX]..
This is my 1st time making a bot script.. :P
Anyway, thank you very much [DX] for that info.. I\'ll use it.. I will not update this one though because I kinda like my work on this one.. :) .. Thanks again

 Respond  
[DX]   -  Jan 05, 2008

Better option is to use variables
example:

on @*:TEXT:!voice*:#:{
  if (%bot == on) { 
    if ($nick !isop #) && ($1 == !voice)
    if ($2 ison $chan) && ($nick != $2) { .mode # +v $2- | halt }
    if ($nick == $2) { .mode # +v $nick }
  }
}

and use /set %bot on instead remote on/off

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.