diff options
author | kongr45gpen <kongr45gpen@helit.org> | 2013-07-23 18:53:20 +0300 |
---|---|---|
committer | kongr45gpen <kongr45gpen@helit.org> | 2013-07-23 18:53:20 +0300 |
commit | 17396f73a99a717f896fc3609de5529b120af97f (patch) | |
tree | 72bf007de6993992623365202e6fd8183f4a2f2a | |
download | supybot_github-17396f73a99a717f896fc3609de5529b120af97f.tar.gz supybot_github-17396f73a99a717f896fc3609de5529b120af97f.tar.bz2 supybot_github-17396f73a99a717f896fc3609de5529b120af97f.zip |
Initial commit
-rw-r--r-- | README.txt | 1 | ||||
-rw-r--r-- | __init__.py | 38 | ||||
-rw-r--r-- | config.py | 21 | ||||
-rw-r--r-- | local/__init__.py | 1 | ||||
-rw-r--r-- | plugin.py | 19 | ||||
-rw-r--r-- | test.py | 9 |
6 files changed, 89 insertions, 0 deletions
diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..d60b47a --- /dev/null +++ b/README.txt @@ -0,0 +1 @@ +Insert a description of your plugin here, with any notes, etc. about using it. diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..042e0d7 --- /dev/null +++ b/__init__.py @@ -0,0 +1,38 @@ +### + +""" +Add a description of the plugin (to be presented to the user inside the wizard) +here. This should describe *what* the plugin does. +""" + +import supybot +import supybot.world as world + +# Use this for the version of this plugin. You may wish to put a CVS keyword +# in here if you're keeping the plugin in CVS or some similar system. +__version__ = "" + +# XXX Replace this with an appropriate author or supybot.Author instance. +__author__ = supybot.authors.unknown + +# This is a dictionary mapping supybot.Author instances to lists of +# contributions. +__contributors__ = {} + +# This is a url where the most recent plugin package can be downloaded. +__url__ = '' # 'http://supybot.com/Members/yourname/Github/download' + +import config +import plugin +reload(plugin) # In case we're being reloaded. +# Add more reloads here if you add third-party modules and want them to be +# reloaded when this plugin is reloaded. Don't forget to import them as well! + +if world.testing: + import test + +Class = plugin.Class +configure = config.configure + + +# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: diff --git a/config.py b/config.py new file mode 100644 index 0000000..956651f --- /dev/null +++ b/config.py @@ -0,0 +1,21 @@ +### + +import supybot.conf as conf +import supybot.registry as registry + +def configure(advanced): + # This will be called by supybot to configure this module. advanced is + # a bool that specifies whether the user identified himself as an advanced + # user or not. You should effect your configuration by manipulating the + # registry as appropriate. + from supybot.questions import expect, anything, something, yn + conf.registerPlugin('Github', True) + + +Github = conf.registerPlugin('Github') +# This is where your configuration variables (if any) should go. For example: +# conf.registerGlobalValue(Github, 'someConfigVariableName', +# registry.Boolean(False, """Help for someConfigVariableName.""")) + + +# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: diff --git a/local/__init__.py b/local/__init__.py new file mode 100644 index 0000000..e86e97b --- /dev/null +++ b/local/__init__.py @@ -0,0 +1 @@ +# Stub so local is a module, used for third-party modules diff --git a/plugin.py b/plugin.py new file mode 100644 index 0000000..a4b07af --- /dev/null +++ b/plugin.py @@ -0,0 +1,19 @@ +### + +import supybot.utils as utils +from supybot.commands import * +import supybot.plugins as plugins +import supybot.ircutils as ircutils +import supybot.callbacks as callbacks + + +class Github(callbacks.Plugin): + """Add the help for "@plugin help Github" here + This should describe *how* to use this plugin.""" + pass + + +Class = Github + + +# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79: @@ -0,0 +1,9 @@ +### + +from supybot.test import * + +class GithubTestCase(PluginTestCase): + plugins = ('Github',) + + +# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: |