Code: Select all
proc bot_shutup {nick host handle chan text} {
global botnick
#....
Code: Select all
global botnick
...
bind pubm - "#channel $botnick*hush*" bot_hush
...
proc bot_hush...
Code: Select all
proc bot_shutup {nick host handle chan text} {
putserv "PRIVMSG $chan :$nick: Nice Try! "
}
bind pubm - "#channel $botnick*shut*up*" bot_shutup
Code: Select all
bind pubm - "#channel *shut*up*" bot_shutup
Code: Select all
proc bot_shutup {nick host handle chan text} {
global botnick
if {![string match "*$botnick*" $text]} { return }
putserv "PRIVMSG $chan :$nick: Nice Try! "
}
Now, if the bot has NOT connected to IRC, (ie. when you first start your eggdrop from the shell), your bot will not have a current nickname, because it has not yet connected to irc... this is fairly simple to understand, and is not a hard concept to grasp.botnick
Value: the current nickname the bot is using (for example: "Valis", "Valis0", etc.)
Module: server