master
bash-irc-bot
A simple, modular IRC bot written in bash
Setup
-
Run the bot once to generate your config file:
./bot.sh -
Edit
bot.cfgwith your IRC server, channels, and bot settings- Configure multiple channels using an array:
channels=("channel1" "channel2") - Channel names should NOT include the # prefix
- Configure multiple channels using an array:
-
Run the bot again:
./bot.sh
Modules
Throw "modules" into /modules/module-name/module-name.sh and they will be loaded up during runtime.
Call modules with botname: test arg1 arg2 ....
Services
Background services live under /services/service-name/service-name.sh and are started by the bot when it connects.
The RSS service is configured in services/rss/rss.conf, which is created from services/rss/rss.conf.example on first run. It requires curl and xmlstarlet, marks existing feed items read on first startup, then announces new items to all configured channels.
Description
Languages
Shell
100%