After the Circus

Random Sample
The Day Bridge

contact me
jean at geemoo dot ca

Aug 29, 2009
I used to have a Supybot, but I eventually got rid of it because I didn't want to have to use python to make it do things.

I instead got myself a bender bot (a BasicBot::Pluggable perl bot) from dave0. I wanted a calculator for it, so I whipped up GoogleCalc. GoogleCalc uses the power of google's calculator and will respond to calc commands in channel. It's awesome, only because google calculator is awesome.

Note: There is an existing Google Calculator BasicBot module, but it seemed much more complicated than I needed and didn't come with examples or docs as to how to install it in a bender bot. It's entirely possible it's not supposed to be installed into a bender bot. This way seemed much easier.

Grab and copy it into your modules directory, and edit your yml config file to load it on startup. Talk to it via the calc command.
15:10:02 [ ManOnIRC] MagicBot: calc 1 + 2
15:10:03 [ MagicBot] ManOnIRC: 1 + 2 = 3
15:10:15 [ ManOnIRC] Thanks MagicBot! You rock!
Tags: linux, perl, irc