I’m not sure why, but I felt like writing a little IRC bot. It has been AT LEAST 14 years since I last logged in to IRC and/or wrote an IRC bot. This is not some fancy eggbot, though. Heck, eggbot is now something that uses an Arduino to scribble on actual chicken eggs with markers these days!
I wanted to put this in front of you guys while I keep working on making it easier to use and expanding its list of commands to support Wikipedia’s list of internet relay chat commands. I’m probably going to need to write a command parse/function router to make it all-inclusive.
Right now, it can:
- Log in
- Set the nick
- Continually increment a trailing integer if the nick is taken
- Join a channel
- Chat in a channel
- Respond to IRC pings
- Leave a channel
- Quit the service
I’d like to add a “trigger” ability to be able to specify strings to listen for in a channel and respond appropriately. Adding them dynamically with
Spark.function() might be rough given the 64-character max length, but longer triggers could be added in user code.
Without further adieu, I present the spark-freenode-bot library!