Article Preview
Buy Now
COLUMN
IRC Bots: Easy! Part II
Part II
Issue: 2.6 (July/August 2004)
Article Description: No description available.
Article Length (in bytes): 7,177
Starting Page Number: 46
Article Number: 2623
Related Web Link(s):
http://google.com......
Excerpt of article text...
Last time we saw what was required to start building an IRC bot. We ended up with most pieces ready for the next show: building an RBot! This is what we are going to do this time. It will involve running RBScripts on the fly, supplementing some missing features in RBScript, and some standard house-keeping tasks like preferences and options.
The Pieces
Last time, we learned how to identify a message coming from one of the members of the channel. We now have to decide whether it is a command or just plain chatter, and, in the case of a command, decide whether it is a known command. At startup time, we loaded a couple of RBScripts into a dictionary. This made testing for a command rather easy:
If commands.HasKey(cmd) Then
...
...End of Excerpt. Please purchase the magazine to read the full article.