diff --git a/README.md b/README.md index e2ccc92..f7742d0 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,9 @@ Installation ### as a standalone bot: * Copy the example config to `bot.cfg`. +* `mkdir modules` +* `echo '#' > modules/__init__.py` +* `ln -s kitnarchive.py modules/kitnarchive.py` * Update everything in the server section and the redmine section (see above). * Start the bot by running `start.sh`. (It will pass any options, like loglevel etc. through to kitn.) diff --git a/bot.cfg.example b/bot.cfg.example index d2fd466..ca0a1b8 100644 --- a/bot.cfg.example +++ b/bot.cfg.example @@ -3,7 +3,7 @@ host=irc.example.com ssl=True port=6697 nick=ArchiveBot -username=archivebot +username=archivebot 9 realname=Archive Bot [modules] diff --git a/kitnarchive.py b/kitnarchive.py index 1451bce..ea1f1e0 100755 --- a/kitnarchive.py +++ b/kitnarchive.py @@ -1,7 +1,7 @@ #!/usr/bin/python -from redmine import Redmine, ResourceNotFoundError -from redmine.exceptions import BaseRedmineError, ForbiddenError +from redminelib import Redmine +from redminelib.exceptions import ResourceNotFoundError, ForbiddenError from datetime import datetime from logging import getLogger from re import split as re_split diff --git a/requirements.txt b/requirements.txt index 6b3e8b2..2cfe62c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ kitnirc -redmine +python-redmine