Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 2.6

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.