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
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