egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

simple command (re)sender [solved]

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
jdart
Voice


Joined: 06 Oct 2007
Posts: 6

PostPosted: Mon Oct 08, 2007 4:08 pm    Post subject: simple command (re)sender [solved] Reply with quote

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
Back to top
View user's profile Send private message
jdart
Voice


Joined: 06 Oct 2007
Posts: 6

PostPosted: Tue Oct 09, 2007 4:08 pm    Post subject: Reply with quote

solved by using partial solution from do.tcl by kazoo

Code:
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. Smile

edit: the second bind is for inside dcc ..
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber