aboutsummaryrefslogtreecommitdiffstats
path: root/plugin.py
diff options
context:
space:
mode:
authorkongr45gpen <electrovesta@gmail.com>2014-04-30 00:58:56 +0300
committerkongr45gpen <electrovesta@gmail.com>2014-04-30 00:58:56 +0300
commit504a41eb83863fcad4aa0884fd50b989de774eaa (patch)
tree2b72ab64f2f2fef036ad44805119c96f13622dff /plugin.py
parent4665d27418eb4a426f6ff52352285d6430ba0841 (diff)
downloadsupybot_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.py8
1 files changed, 3 insertions, 5 deletions
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

© 2014-2024 Faster IT GmbH | imprint | privacy policy