right .. I'm writing a channel admin bot (with some wolf rcon stuff in it) and so far I've been doing it in TCL .. however I'm a C coder by trade so I'm just starting to mess around with modules.
My question is this - can anyone suggest a way by which (probably in a module) I can communicate between the bots?
The problem is that I have several bots in one channel, and I want a way of running the same scripts/modules on each bot, but making sure that only one bot answers to a public command... this obviously requires some flaggin between the bots. I've seen the gseen script that uses flags to suggest priority, but I'd rather dcc between the bots to ask who is doing what.... this would make things much more powerful and flexible.
Bots can comunicate with each other, usign the same emthod Tcl scripts use.
You should see the module programming guide, and modules.h file for the commands required to send messages.
1 very good module to look at, is the wire module.
While very complex (due to the fact it creates a bind, only at time of a wire being used (due to encryptions keys)), it does show how a bot will broadcat the command, plus how it will receive it.
It is the C equivilant of putbot, putallbots and bind BOT.
This also provides the benefit of either using a Tcl script, a C module or even mxing the 2. Due to the fact that they use the same processing systems, it is jus the programming language that is different.
Rather than using flags to make sure only one bot processes a command, you use a targeted command. Using the C equivilant of putbot, only the destination bot will receive it.
I had seen that - I've got to compiling a very basic module .. now for the (um) interesting bit.
Basically I got a bit fed up with TCL ... I know thats crap, but I can do C so much faster its untrue... and I hope to add a bit more power to my script as I go...
Will keep you informed (and post it when its *cough* finished)