bash-irc-bot

A simple, modular IRC bot written in bash

Setup

  1. Run the bot once to generate your config file:

    ./bot.sh
    
  2. Edit bot.cfg with your IRC server, channels, and bot settings

    • Configure multiple channels using an array: channels=("channel1" "channel2")
    • Channel names should NOT include the # prefix
  3. 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.

S
Description
A simple IRC bot written in bash
Readme 391 KiB
Languages
Shell 100%