I want the bot to scan the public chat in around 3 channels, when someone types something such as !rules or !help I want it to display a string of text to the channel however this string of text will be different for each of the 3 channels.
Code: Select all
bind pub - !rules rules
proc rules {nickname userhost handle channel arguments} {
puthelp "PRIVMSG #clanbase.mw2 :HI! $nick Rules for Call of Duty 4 http://clanbase.ggl.com/rules.php?lid=5709"
}
1. If someone types the same command in a different channel I want it to reply with a different message.
2. For it to change the channel mode to [-c] before it sends the message and [+c] just after it has sent it, I had a play around with the PUTMODE command however failed miserably.
3. Somehow enable the use of wildcards so that it detects the text anywhere in the chat and not just at the beggining of the sentence.
I really hope someone can help me here, I am very much a visual basic guy so this TCL stuff is very alien to me.
Cheers
