A bot built using bash, and sic irc by suckless tools. The bot uses fifo pipes, making it very extensible, and bash built-ins, making it reasonably snappy. Nearly everything about this bot can be changed on the fly.
bash, sic (source included), fortune-mod (optional), tail (optional)
- Compile sic.
- cd conf/src/sic-1.1
- make
- cp sic ../../bin
- Open the conf/bot.conf and fill out the details
- start the bot by running ./startbot
- this will pipe bot logs to a file called out in conf/pipes/ and run the bot in the background
- use "tail -f conf/pipes/out" to monitor bot events.
- stop the bot by running ./ctrlbot kill
Scripts go in the conf/scripts/ dir and need +x to execute. See the example script conf/scripts/fortune for a simple tutorial on how to write scripts.
Use '!reload' in a channel or PM to synchronize modifications made to the bot, including scripts added/removed/modified, and changes to the ctrlbot file. Most of the bot's behavior is defined in the ctrlbot file. Modification to the startbot file is usually unnecessary, and will require a restart of the bot to take effect.
- Permissions