diff --git a/LimnoriaChan/config.py b/LimnoriaChan/config.py index 2a49879..7017872 100644 --- a/LimnoriaChan/config.py +++ b/LimnoriaChan/config.py @@ -47,6 +47,11 @@ LimnoriaChan = conf.registerPlugin('LimnoriaChan') # This is where your configuration variables (if any) should go. For example: # conf.registerGlobalValue(LimnoriaChan, 'someConfigVariableName', # registry.Boolean(False, _("""Help for someConfigVariableName."""))) +conf.registerGlobalValue(LimnoriaChan, 'login', + registry.String('Limnoria', _("Login to GitHub (to post issues)"))) +conf.registerGlobalValue(LimnoriaChan, 'token', + registry.String('', _("Auth toket to GitHub (to post issues)"), + private=True)) # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: diff --git a/LimnoriaChan/plugin.py b/LimnoriaChan/plugin.py index df9418f..bb33bc7 100644 --- a/LimnoriaChan/plugin.py +++ b/LimnoriaChan/plugin.py @@ -29,6 +29,8 @@ ### import re +import json +import urllib import supybot.utils as utils import supybot.world as world @@ -67,6 +69,25 @@ class LimnoriaChan(callbacks.Plugin): """Add the help for "@plugin help LimnoriaChan" here This should describe *how* to use this plugin.""" + def issue(self, irc, msg, args, user, title): + """