how do i make a script that will allow me to type !invite bot #chan and it will send the eggdrop to that channel? but i only want it to work for me. i have been able to do this in mIRC but nothing like this in tcl
cheers
bind pub m "!invite" pub:invite
proc pub:invite {nick uhost hand chan args} {
channel add $args
}
bind pub m "!leave" pub:leave
proc pub:leave {nick uhost hand chan args} {
channel remove $args
}
When you will type !invite #channel, bot will join channel you typed after !invite...Same goes for !leave...Only people with m flag can make bot join or leave channel...
Here is the one I use.
You can change/modify the binding triggers according
to your own needs. This one is a bit complicated than
the one posted above.
bind pub m "!invite" pub:invite
proc pub:invite {nick uhost hand chan args} {
channel add $args
}
bind pub m "!leave" pub:leave
proc pub:leave {nick uhost hand chan args} {
channel remove $args
}
as join.tcl and put it in Eggdrop scripts folder.When you do this, put line source scripts/join.tcl in your eggdrop.conf, after that you need to rehash bot (.rehash) and then script should work