PDA

View Full Version : [Fixed] howto add binds to ioBanana.tcl


godlike
06-12-2004, 12:30 PM
I have 2 sites and would like to have one !command for both of them like !bw and they would reply both and then i would also like to have on first site command like !1bw and on the second site command like !2bw ... so they would reply only one at a time but if i would like i would use like !bw and both bots would reply.

Is this possible to include in v20 or am i just insane to request such a thing :)

have a nice time :P

neoxed
06-12-2004, 04:45 PM
Either change both sites to use the same command prefix (set ioBvar(cmdpre) "!") or you'll have to make a few changes to the ioBanana.tcl on both sites.

Search for:
bind pub - $ioBvar(cmdpre)bw bwalias
Above or below it, add:
bind pub - !bw bwalias

Then just type !bw in the channel, repeat the process for any other commands.

godlike
06-13-2004, 02:52 AM
Thanx i did it in a little diffrent way but it works fine :)

Here is my solution:

in iobanan.tcl

i added:

set ioBvar(cmdpre1) "!1"

and then i have added for all commands

bind pub - $ioBvar(cmdpre1)requests reqalias
....

It works great ... thanx again for bringing me on the right track :)