barrucadu / yukibot

An IRC bot, and associated libraries, for the ##compsoc-uk-anime channel on Freenode
MIT License
10 stars 2 forks source link
haskell irc

yukibot Build Status

Yukibot is ostensibly the IRC bot for the ##compsoc-uk-anime channel on Freenode, but is basically my pet project to play with IRC in Haskell.

Usage

There are cabal files, so you can build this with cabal if you want, but I use nix.

The Scripted Way

$ run-yukibot /path/to/configuration/file

This will build everything with nix and start a tmux session called "yukibot", running yukibot with the given configuration file.

Calling the script a second time will build the new yukibot, kill the old one, and start the new one. As the build is done first, there should be minimal downtime during the switch.

$ kill-yukibot

This will send a C-c to a tmux session called "yukibot".

The Manual Way

$ ./gen-package-list.sh
$ nix-shell

This will build everything and drop you in a shell with it all available. Now you're good to go:

$ yukibot configuration.toml

Configuration

Configuration files are in Tom's Obvious, Minimal Language (TOML). See the example-configuration.toml file.

Organisation

There are four components in a bot: