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.
Help for those learning Tcl or writing their own scripts.
Access
Voice
Posts: 22 Joined: Sun Jun 04, 2006 6:31 am
Post
by Access » Tue Oct 09, 2007 6:05 am
Code: Select all
bind bot - "announce" bot:announce
proc bot:announce { bot command text } {
putlog "$bot $command $text"
}
a little test script...
Code: Select all
putallbots "announce kleiner test"
---->
Code: Select all
[11:33] Tcl error [bot:announce]: wrong # args: should be "bot:announce bot arg"
Why this dont work?
thanks...
w00f
Halfop
Posts: 49 Joined: Wed Oct 04, 2006 6:50 pm
Post
by w00f » Tue Oct 09, 2007 8:01 am
Code: Select all
proc bot:announce { text } {
putlog "$text"
}
try, and use lindex to grab the info if you want/need to.
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Tue Oct 09, 2007 11:50 am
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
rosc2112
Revered One
Posts: 1454 Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania
Post
by rosc2112 » Tue Oct 09, 2007 2:20 pm
(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.
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Tue Oct 09, 2007 2:28 pm
Nope, description is quite correct.
NML_375