This repository has been archived by the owner. It is now read-only.
Go based IRC Bot
Go
Switch branches/tags
Nothing to show
Clone or download
twirrim Cleared up date insanity
Not sure what I thought I was doing there... besides just making my life harder!
I'd made a silly mistake anyway, forgetting to remove hour total from minutes.
Latest commit 90c5288 May 18, 2014

README.md

This is an example IRC bot created using golang.

The primary purpose for this is to help me learn to use Google's Go programming language. Whilst it is starting out from simple roots, I'm hoping to keep expanding it with more and more features, aiming to create an effective and powerful ircbot.

All configuration is handled through the conf.json file, to try to make things as easy as possible, an example of which is included in the repository.

Current state:

  • Connects to a configured irc server and channel (only to single channel at the moment).
  • Checks every message to see if it contains an http(s) URL, connects to the site, reads the title, and then tells the channel what it is.
  • Ignores any messages by itself.
  • Database backend (sqlite at the moment, but you can easily replace the imports and config variables to use whatever gorp supports.

Features I'm hoping to add:

  • Support for multiple IRC channels, handled by different go threads.
  • 'plug-in' support. I believe these will need compiled in to the ircbot executable to run, but I'd like to shift the main IRC bot commands and functions out to plugins to make it easy to add new ones whilst keeping main code clean
  • Better support for ignoring users. Regexes are powerful things, but easy to get wrong.
  • Per-user rate limiting (and maybe at bot level?)