I'm considering porting an IRC bot I wrote in Perl to work with EggDrop.
My hope is this will be easier for those running under windows to work with. There's a few things I need to be able to do however:
1. The bot gives status updates in one channel, and will send additional information to people on request. The additional information can be in the region of 20 lines. I need to be able to send the information, possibly to multiple people, quickly and without slowing down the feed to the channel.
In the Perl version this is sent via DCC Chat. Is it possible to make an eggdrop send to somebody via DCC but NOT use the partyline, or even have an account on the bot?
2. The bot does UDP queries, is there a good reference on the internet somewhere about using UDP queries with TCL? It has to work with both windows and linux.
James_Orr wrote:I'm considering porting an IRC bot I wrote in Perl to work with EggDrop.
My hope is this will be easier for those running under windows to work with. There's a few things I need to be able to do however:
1. The bot gives status updates in one channel, and will send additional information to people on request. The additional information can be in the region of 20 lines. I need to be able to send the information, possibly to multiple people, quickly and without slowing down the feed to the channel.
In the Perl version this is sent via DCC Chat. Is it possible to make an eggdrop send to somebody via DCC but NOT use the partyline, or even have an account on the bot?
2. The bot does UDP queries, is there a good reference on the internet somewhere about using UDP queries with TCL? It has to work with both windows and linux.
1) yes it is possible... see 'listen' , 'control' in tcl-commands.doc that comes with eggdrop.
The best way to learn how to use these commands is to find a script that
uses them and follow it carefully. However, hopefully this has given you
a good start.