A simple, efficient IRC bot for annotating Internet Relay Chat conversations.
annobot
is an IRC bot meant to respond to unauthenticated users with information
to help enhance the Chat Experience™. This includes:
- Title text and meta descriptions of websites.
- Dedicated handling for OMDB, YouTube, WolframAlpha, and Wikipedia.
- Pretty colours.
- Other stuff at some point.
It's currently very young and should be deployed with care.
- Multi-network.
- Efficient async Rust with request caching and deduplication.
- Per-channel rate limits.
- Graceful config reloads via
SIGHUP
. - Messy code.
Create a configuration file, using example.toml
as a guide.
Build the bot (currently requires Rust nightly):
$ cargo install --git https://github.com/Freaky/annoirc.git
And run it passing the path to the configuration:
$ annoirc -c config.toml
Changes to your configuration can be applied by callingkill -HUP
on the annoirc
process.
Configuring it to act as a daemon is system-specific and left as an exercise.
- General refactoring.
- Better rate limits.
- Gracefuler config reloads (any IRC changes currently involve a reconnection).
- Fully templated responses with colour support.
- Special handling for Github, Imgur, etc.
- Functions such as weather, dictionary lookups, currency conversions, stocks, etc.
- url-bot-rs, another simple Rust URL handling bot.