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.

Botnet / putallbots

Help for those learning Tcl or writing their own scripts.
Post Reply
A
Access
Voice
Posts: 22
Joined: Sun Jun 04, 2006 6:31 am

Botnet / putallbots

Post by Access »

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...
w
w00f
Halfop
Posts: 49
Joined: Wed Oct 04, 2006 6:50 pm

Post by w00f »

Code: Select all

proc bot:announce { text } {
   putlog "$text"
}
try, and use lindex to grab the info if you want/need to.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

(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.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Nope, description is quite correct.
NML_375
Post Reply