How would i produce something like this in TCL?
[Jason] bot, hello
[bot] Hi
Want the commands to be accessed like..
<botnick>, <command>
If anyone knows how please post!
Thanks,
Jas0n
[/code][/quote]
Code: Select all
bind pubm - "% %,*" pubm:botnick
proc pubm:botnick {nick uhost hand chan arg} {
if {[scan $arg "%\[^,]," somenick] && [isbotnick $somenick]} {
<your code here>
}
return 0
}
Code: Select all
if {[scan $arg "%\[^,]," somenick] && [isbotnick $somenick]} {
Code: Select all
if {[scan $arg "%\[^,\]," somenick] && [isbotnick $somenick]} {