From 3ae5367abb81f93fc812afe8e8e2c4c8ec9a4ed8 Mon Sep 17 00:00:00 2001 From: Spencer Krum Date: Wed, 18 Oct 2017 14:59:17 -0700 Subject: [PATCH 1/2] Handle 'redmine' -> 'python-redmine' rename --- kitnarchive.py | 4 ++-- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 From e6178999cbb817d48f0e46fc4d84c4c6a5c7f7f9 Mon Sep 17 00:00:00 2001 From: Spencer Krum Date: Wed, 18 Oct 2017 15:01:31 -0700 Subject: [PATCH 2/2] Touch up documentation and examples a bit This is just what I had to do to get it to run. Totally might be a better way. --- README.md | 3 +++ bot.cfg.example | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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]