8374c1ad1d | ||
---|---|---|
.gitignore | ||
LICENSE | ||
README.md | ||
bot.py | ||
config.py.example | ||
irc.py | ||
king-leonidas | ||
regexmultimatch.py |
README.md
King-Leonidas
My IRC bot in python
Overview
king-leonidas
: The main script.config.py
: The settings.irc.py
: Generic code to connect to and maintain an IRC connection.bot.py
: IRC bot code that processes lines.regexmultimatch.py
: A useful regex primitive
Usage
Setup
python -m venv venv
source venv/bin/activate
also set up ZNC, this allows you to restart the bot without the connection dropping.
Launch
./king-leonidas
To do
- join after ident, or SASL
- automatically restart on crash
- bot state saved to disk?