My IRC bot in python
Go to file
river 8374c1ad1d big improvements. no more code reloading, use ZNC instead. regex table. store state to disk. 2021-05-29 23:31:39 +01:00
.gitignore big improvements. no more code reloading, use ZNC instead. regex table. store state to disk. 2021-05-29 23:31:39 +01:00
LICENSE Initial commit 2021-05-24 14:33:35 +00:00
README.md big improvements. no more code reloading, use ZNC instead. regex table. store state to disk. 2021-05-29 23:31:39 +01:00
bot.py big improvements. no more code reloading, use ZNC instead. regex table. store state to disk. 2021-05-29 23:31:39 +01:00
config.py.example initial 2021-05-24 17:48:04 +01:00
irc.py big improvements. no more code reloading, use ZNC instead. regex table. store state to disk. 2021-05-29 23:31:39 +01:00
king-leonidas big improvements. no more code reloading, use ZNC instead. regex table. store state to disk. 2021-05-29 23:31:39 +01:00
regexmultimatch.py big improvements. no more code reloading, use ZNC instead. regex table. store state to disk. 2021-05-29 23:31:39 +01:00

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?