I want my egg to tell me every raw command that it gets, so i tried the following code:
Code: Select all
bind raw *|* * perception
proc perception { from keyword text } {
putlog "from keyword text"
putlog "$from $keyword $text"
return 0
}
I have return 0 there because of this text in tcl-commands, under RETURN VALUES:
I'm not sure what this means, but i understood it as it should return 0 to act normally.RAW Return 1 to ask the bot not to process the server text. This
can affect the bot's performance by causing it to miss things
that it would normally act on -- you have been warned.
What I want to do is make a set of variables which will increase any time a specific RAW command is made.undefined. The bot should still act normally though, and not disconnect or become k-lined or anything like that.