From 504a41eb83863fcad4aa0884fd50b989de774eaa Mon Sep 17 00:00:00 2001 From: kongr45gpen Date: Wed, 30 Apr 2014 00:58:56 +0300 Subject: Add another status code --- plugin.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'plugin.py') diff --git a/plugin.py b/plugin.py index 5052c06..6153d62 100644 --- a/plugin.py +++ b/plugin.py @@ -45,15 +45,13 @@ import supybot.ircutils as ircutils import supybot.registry as registry import supybot.callbacks as callbacks -#RequestHandler = utils.python.universalImport('handler.GithubHandler', 'local.handler.GithubHandler') -#Utility = utils.python.universalImport('local.utility') - import local.globals as globals import local.handler.GithubHandler as RequestHandler import local.utility as Utility globals.init() + class Github(callbacks.Plugin): """Add the help for \"@plugin help Github\" here This should describe how to use this plugin.""" @@ -101,7 +99,7 @@ class Github(callbacks.Plugin): 'second': 2, 'third': 3, 'fourth': 4 - } + } if _digits.search(order): requestedNum = int(re.sub("[^0-9]", "", order)) @@ -116,7 +114,7 @@ class Github(callbacks.Plugin): except IndexError: irc.error('No such message') - # Debug function + # Debug command get = wrap(get, ['lowered', optional('lowered'), optional('text')]) if world.testing else False -- cgit v1.2.3