Chapter 10. Announcement Bots
Introduction: Hacks #64-67
IRC bots are ideal for making announcements. They can happily sit there and wait for an event to happen without getting bored. Furthermore, when a bot makes an announcement, it will never get involved in the subsequent debate that ensues.
The first hack in this chapter shows you how to make a simple bot that welcomes users to your channel. The hacks steadily become more complex, showing you how to announce the appearance of new newsgroup posts and news items found in RSS feeds. The final hack shows you how to use MatchEd to monitor the progress of multiplayer first-person action games from the comfort of IRC.
Beyond the hacks in this chapter, we hope that your imagination can lead you to create your own unique hacks, such as a bot that notifies you when you’re low on hard disk space or when it’s time to go and watch your favorite TV program.
Welcome Visitors Automagically
Create a simple bot that welcomes visitors to your IRC channels.
" Can I ask a question?” Users of busy channels will often observe newcomers popping in and asking this. You may wonder why they don’t just ask their question, allowing people to choose whether or not to answer it, rather than having to answer the redundant question as well.
Channel Rules
Many IRC channels have a basic set of ground rules associated with them. The regular inhabitants of the channel generally know these rules and abide by them. A lot of rules are common sense and are put in place ...
Get IRC Hacks now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.