Skip to content
/ annoirc Public

A bot to annotate IRC with information about posted links

License

Notifications You must be signed in to change notification settings

Freaky/annoirc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

annoirc - annotate IRC

A simple, efficient IRC bot for annotating Internet Relay Chat conversations.

Example image

Description

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.

Key Features

  • Multi-network.
  • Efficient async Rust with request caching and deduplication.
  • Per-channel rate limits.
  • Graceful config reloads via SIGHUP.
  • Messy code.

Usage

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.

Todo

  • 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.

See Also

  • url-bot-rs, another simple Rust URL handling bot.

About

A bot to annotate IRC with information about posted links

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages