The most worthless bot on IRC

I'm not one to jump on bandwagons just because they're rolling by (even with great companions), but I started using Python in one of my projects and I've got to say that I'm pretty happy with it. I think their documentation leaves something to be desired but overall the language is pretty intuitive and it has enough of a following that libraries are plentiful.

One evening I decided I wanted to try making an IRC bot (because you know we need more of those!). I'd only worked with Python briefly before, but armed with the confidence only a language that you don't know the shortcomings of can bring, I started writing code. After less than an hour and about 85 well-spaced lines of code later, Aaplsauce was born. All it does is sit idle in a channel and watch for someone to say something about AAPL. After someone mentions the magic phrase the bot looks up the price and prints it in the channel. How convenient!

So, nearly worthless? Absolutely. But the code is short and easy to write and python made that possible. Thx Python.

Post a comment

All comments are held for moderation; basic HTML formatting accepted.