This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

simple command (re)sender [solved]

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
j
jdart
Voice
Posts: 6
Joined: Sat Oct 06, 2007 6:50 pm

simple command (re)sender [solved]

Post by jdart »

hello guys, i've posted this on another place but it seems to me that egghelp.org community is much more active so let me try here.

this is the basic idea. when i type

/notice <bot> <cmd>

if my mask match certian criteria cmd will be executed. for example:

/notice somebot part #channel buh bye

if my mask is jdart!*@*.myisp.com

bot will leave the #channel with part message, and list of masks could be provided at the begining of the script. so the approach is for the bot to just execute raw irc command send via notice or msg.

does anyone have some solution on how to accomplish this. of course instead of /notice could be /msg <bot> <cmd>, whatever is easier.

this is more like an idea, im not into tcl so whatever is the easiest or most elegant. apologies if this has been answered before, i couldnt find it. reason for this is, well this can make bot owners life easier. :)

thanks in advance.
Last edited by jdart on Tue Oct 09, 2007 4:09 pm, edited 1 time in total.
j
jdart
Voice
Posts: 6
Joined: Sat Oct 06, 2007 6:50 pm

Post by jdart »

solved by using partial solution from do.tcl by kazoo

Code: Select all

bind msg n|f blabla cmd:do
proc cmd:do {nick host handle text} {
putserv "$text"
puthelp "Privmsg $nick :Done"
}
bind dcc n|f do proc:do
proc proc:do {handle idx text} {
putserv "$text"
}
instead of blabla in first line could be anything else as a prefix (and should be changed). this is not exactly what i wanted but serves the purpose. :)

edit: the second bind is for inside dcc ..
Post Reply