Hi, my bot sits in a channel where there are people serving with the @nickname commands such as autoget, omenseve, sdfind. Many times, a user does @botnick @botnick2 Is there a script that will send a notice to the user saying that the nick is not sharing when the user types @botnick @botnick2, etc etc.? Thanks.
thanks for the code, but often times, i have to rehash for it to work? I'm using this script on 3 bots on my botnet. Is there any extra lines/code to make it more robust?
Bytez wrote:thanks for the code, but often times, i have to rehash for it to work? I'm using this script on 3 bots on my botnet. Is there any extra lines/code to make it more robust?
You will always have to "Rehash" your bot if you add new tcl's. as for being more robust? Usually the simpler the script the more stable it is. Or maybe i dont quite get what you mean
^DooM^
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
I have to rehash sometimes after I rehash it for the first time. It only happens to this one botnick using it, and it was the last user that I added the script to.
bind pub - @$botnick reply:share
proc reply:share {nick uhost hand chan arg} {
puthelp "NOTICE $nick :I'm not sharing any files."
}
what's pub binds? Also, when I typed @ by itself on the channel, ALL my bots with the script loaded sent me a notice with a mesage. How can I fix this and also add some flood settings? I really appreciate it, maybe it should be in the TCL archives... I'm sure many people would use this esp. on fserv channels. Thanks!
I only typed @ and all of the bots with the script loaded sent me a notice. If i type @botnick only that bot will send me a notice so there must be something up with the code.
Bytez wrote:I only typed @ and all of the bots with the script loaded sent me a notice. If i type @botnick only that bot will send me a notice so there must be something up with the code.
Works fine for me. Only replies to @<botnick>... No notices when I just type "@"...
One possibility is that you entered the code wrong initially, changed it, rehashed (instead of restarting), thus leaving the original incorrect bind in tact and still usable...
Another possibility is that you loaded the bot from scratch and when doing so, the bot has not yet connected to irc, and botnick may be "" (empty), thus meaning that the bind would just be "@".... If this is the problem, then a better bind would be bind pub - @$nick <proc> instead.