Can someone make an slap back script that makes the bot slap people back when it get slaped?
Would also be nice if there was some random there..
like:
* nick slaps bot around a bit with a large trout
* Bot slaps Nick around..
* nick slaps bot around a bit with a large trout
* Bot slaps Nick right back..
* nick slaps bot around a bit with a large trout
* Bot slaps Nick over the head with an dead cat..
set actReplies {
"around..."
"right back.."
"over the head with an dead cat.."
}
bind ctcp - ACTION slap:back
proc slap:back {nick uhost hand chan kw arg} {
global botnick actReplies
if {![validchan $chan]} {return 0}
if {[string match "slaps $botnick around a bit with a large trout" $arg]} {
puthelp "privmsg $chan :\001ACTION slaps $nick [lindex $actReplies [rand [llength $actReplies]]]\001"
}
}
alchera i did, and i got a result, but the result had a problem, and no one has responded yet in maybe 4 days or so. Thats why i'm giving up on it. Cause it seems i have a problem no one has ever heard of.
That is so simple to figure out and that is why no-one has responded as it is actually staring you right in the face; you actually have the script sending the text twice to the channel.
putserv "PRIVMSG $chan :\001ACTION slaps $target around a bit with a larger trout\001"
puthelp "PRIVMSG $chan :\001ACTION slaps $target around a bit with the remains of a big Smelly Trout!\001"
Add [SOLVED] to the thread title if your issue has been. Search | FAQ | RTM