diff options
author | kongr45gpen <electrovesta@gmail.com> | 2014-04-30 00:58:56 +0300 |
---|---|---|
committer | kongr45gpen <electrovesta@gmail.com> | 2014-04-30 00:58:56 +0300 |
commit | 504a41eb83863fcad4aa0884fd50b989de774eaa (patch) | |
tree | 2b72ab64f2f2fef036ad44805119c96f13622dff /plugin.py | |
parent | 4665d27418eb4a426f6ff52352285d6430ba0841 (diff) | |
download | supybot_github-504a41eb83863fcad4aa0884fd50b989de774eaa.tar.gz supybot_github-504a41eb83863fcad4aa0884fd50b989de774eaa.tar.bz2 supybot_github-504a41eb83863fcad4aa0884fd50b989de774eaa.zip |
Add another status code
Diffstat (limited to 'plugin.py')
-rw-r--r-- | plugin.py | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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 |