![]() Refactor to run in both Python 2.7 and Python 3.6. This is important as python 2.7 is end of life. I tried to edit as few things as possible in this commit to minimize conflicts which means the code could be prettier. Signed-off-by: Viktor Sjölind <viktor@sjolind.se> |
||
---|---|---|
example_logs | ||
static | ||
templates | ||
.gitignore | ||
Db.py | ||
ircbot.py | ||
irclib.py | ||
LICENSE | ||
logbot.py | ||
pullrequest.py | ||
README.md |
smooth-operator
smooth-operator is a IRC bot which logs everything in a channel and offers more convinient things like notifications about new commits on GitHub, etc. For a roadmap please check the issues on GitHub.
Originally this was written by Chris Oliver chris@excid3.com with contributions from Filip Slagter. Now it has diverged quite a lot.
Requirements
smooth-operator shows logs using flask, and stores logs using peewee. Install these dependencies using pip
:
pip install flask peewee
Usage
smooth-operator requires Python 2. It is NOT compatible with Python 3. Configuration is either done inside logbot.py, or using environment variables. The following environment variables are respected:
IRC_SERVER
: IRC serverIRC_PORT
: IRC server portIRC_SERVER_PASS
: Password for IRC server, if anyIRC_CHANNELS
: IRC channels to join, separated by,
IRC_NICK
: NicknameIRC_NICK_PASS
: Password to use when authenticating to nickserv, if any
The bot can be launched using:
python2 logbot.py
You can view the logs on http://localhost:5000
License
This project is licensed under the GPLv2.