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 

Botnet / putallbots

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Access
Voice


Joined: 04 Jun 2006
Posts: 22

PostPosted: Tue Oct 09, 2007 6:05 am    Post subject: Botnet / putallbots Reply with quote

Code:
bind bot - "announce" bot:announce

proc bot:announce { bot command text } {
   putlog "$bot $command $text"
}


a little test script...

Code:
putallbots "announce kleiner test"


---->

Code:
[11:33] Tcl error [bot:announce]: wrong # args: should be "bot:announce bot arg"


Why this dont work?


thanks...
Back to top
View user's profile Send private message
w00f
Halfop


Joined: 04 Oct 2006
Posts: 49

PostPosted: Tue Oct 09, 2007 8:01 am    Post subject: Reply with quote

Code:

proc bot:announce { text } {
   putlog "$text"
}


try, and use lindex to grab the info if you want/need to.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Oct 09, 2007 11:50 am    Post subject: Reply with quote

To be honest, I can't see why that tiny tcl:et would'nt work.

However, one thing that stands out, is that the error message says a completely different argument-list than what's used in the script...

Minor typo?
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Tue Oct 09, 2007 2:20 pm    Post subject: Reply with quote

Quote:

(17) BOT
bind bot <flags> <command> <proc>
proc-name <from-bot> <command> <args>

triggered by a message coming from another bot in the botnet; works similar to a DCC binding; the first word is the command and the rest becomes the argument string; flags are ignored

Looks like the documentation is a bit..wrong.. The 1st part says there's 3 fields for the proc, but the description says 2.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Oct 09, 2007 2:28 pm    Post subject: Reply with quote

Nope, description is quite correct.
_________________
NML_375, idling at #eggdrop@IrcNET
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 -> Scripting Help 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