January 15, 2011

Latest IRC Bot

So I've been working on this project for a little while now. The source has been available since nearly day one. I actually released it before I did Gambot. I've already shown it off to a few people, but here's the formal announcement (after the jump).

Those who hang out in The Battle for Wesnoth's little slice of freenode.net may have noticed a user named "lobby". That bot is run on wesnoth.org. What you probably haven't noticed is two particular channels that that bot (because it is a bot) hangs out in. They are #wesnoth-mp-lobby-stable and #wesnoth-mp-lobby-dev

This bot announces all of our multiplayer lobby chat messages there. It also allows voiced, or opped IRC users to speak in the lobby as "". Whenever you break the COC and get a message from "" that's actually an MP moderator in one of those channels.

One day I plucked up the courage to ask why this cross-chat wasn't open to regular users. Surely the community would enjoy being able to talk to their lobby or IRC friends without being there. Then Soliton explained to me how it actually works. The bot only reads the logs of the lobby. And when you speak through it, it sends special commands over a local socket connection to the lobby. It didn't work how I thought it did.

But the idea was already in my head, and I am a stubborn person. So I set to work right there on making a bot that would do just that. I'll save the pitfalls of that adventure for another blog entry, but I finally have that bot in a sort of alpha state.

Enter: grillobot, the lobby<->IRC cross-chat bridge bot.

It connects to the 1.9 lobby and to the IRC channel ##Gambot-lobby on freenode.net. Then it joins a lobby room named "IRC" and begins propagating messages back and forth. It also announces IRC joins, parts, and quits. I'm currently working on announcing lobby joins and parts. That's not really going well at the moment.

If you've got the latest 1.9.x and would like a demonstration (1.9.4 as of the day of this post, though 1.9.3 will work for a little while yet.), stop by the IRC channel and ask! I (Gambit) will be happy to show-off. ;)

0 comments:

Post a Comment