No description
Find a file
2018-09-21 11:39:09 +01:00
modules Change Utils.color to take a string to wrap in color 2018-09-21 11:39:09 +01:00
.gitignore Ignore .key/.crt in .gitignore 2018-09-17 10:55:53 +01:00
bot.conf.example Add support for TLS client certificate/key 2018-09-17 10:55:39 +01:00
Config.py Return config from Config.load_config instead of setting it on bot 2018-08-30 11:40:41 +01:00
Database.py Don't pass around full server details more than we have to. 2018-09-21 11:34:38 +01:00
EventManager.py Change default priority to "medium", add priority lower than "low" ("monitor") 2018-09-09 17:08:38 +01:00
Exports.py give an Exports object (actually, ExportsContex object) to each module, to 2018-09-02 19:54:45 +01:00
IRCBot.py Don't pass around full server details more than we have to. 2018-09-21 11:34:38 +01:00
IRCBuffer.py Utils.irc_lower and Utils.irc_equals take an IRCServer parameter 2018-09-11 10:15:16 +01:00
IRCChannel.py Utils.irc_lower and Utils.irc_equals take an IRCServer parameter 2018-09-11 10:15:16 +01:00
IRCLineHandler.py Update a user's ircv3 account if a PRIVMSG has an "account" tag 2018-09-21 10:35:18 +01:00
IRCServer.py Only accept PROTOCOL_TLS as SSL handshake version 2018-09-19 14:44:28 +01:00
IRCUser.py Utils.irc_lower and Utils.irc_equals take an IRCServer parameter 2018-09-11 10:15:16 +01:00
LICENSE Initial commit 2016-03-29 12:44:46 +01:00
Logging.py Show logging timestamp as UTC/GMT 2018-09-21 10:35:05 +01:00
ModuleManager.py Add ModuleManager.BaseModule so modules don't *have* to implement __init__ 2018-09-19 13:28:18 +01:00
README.md switch to using configparser for config files 2018-07-16 00:36:52 +01:00
start.py Don't pass around full server details more than we have to. 2018-09-21 11:34:38 +01:00
Timer.py Give modules event objects with "context"s, to facilitate purging all the event 2018-08-31 12:55:52 +01:00
Utils.py Change Utils.color to take a string to wrap in color 2018-09-21 11:39:09 +01:00

BitBot

Python3 event-driven modular IRC bot!

Dependencies

Configurating

To get BitBot off the ground, there's some API-keys and the like in bot.conf.example. move it to bot.conf, fill in the API keys you want (and remove the ones you don't want - this will automatically disable the modules that rely on them.)

Eagle

BitBot's National Rail module can optionally include output from Network Rail's SCHEDULE via Eagle. Configuration on BitBot's end is covered by the eagle- keys in bot.conf.example.

Running

Just run ./start.py

On first boot, he'll ask for a first server to connect to then exit. do ./start.py again and he'll connect to that server and join #bitbot (to get him to join other channels, simply invite him to them.)

Data storage

The main data storage for Bitbot is done in his sqlite3 database, bot.db.