| View previous topic :: View next topic |
| Author |
Message |
Access Voice
Joined: 04 Jun 2006 Posts: 22
|
Posted: Tue Oct 09, 2007 6:05 am Post subject: Botnet / putallbots |
|
|
| 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 |
|
 |
w00f Halfop
Joined: 04 Oct 2006 Posts: 49
|
Posted: Tue Oct 09, 2007 8:01 am Post subject: |
|
|
| Code: |
proc bot:announce { text } {
putlog "$text"
}
|
try, and use lindex to grab the info if you want/need to. |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Tue Oct 09, 2007 11:50 am Post subject: |
|
|
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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Tue Oct 09, 2007 2:20 pm Post subject: |
|
|
| 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 |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Tue Oct 09, 2007 2:28 pm Post subject: |
|
|
Nope, description is quite correct. _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
|