From d2354b7fcd300267978fda0f893414f9dc78c58b Mon Sep 17 00:00:00 2001 From: oddluck Date: Thu, 5 Dec 2019 07:21:06 +0000 Subject: [PATCH] Initial commit. --- README.md => NFLScores/README.md | 0 __init__.py => NFLScores/__init__.py | 9 ++++++--- config.py => NFLScores/config.py | 8 ++++---- plugin.py => NFLScores/plugin.py | 6 +++--- test.py => NFLScores/test.py | 4 ++-- 5 files changed, 15 insertions(+), 12 deletions(-) rename README.md => NFLScores/README.md (100%) rename __init__.py => NFLScores/__init__.py (74%) rename config.py => NFLScores/config.py (80%) rename plugin.py => NFLScores/plugin.py (99%) rename test.py => NFLScores/test.py (68%) diff --git a/README.md b/NFLScores/README.md similarity index 100% rename from README.md rename to NFLScores/README.md diff --git a/__init__.py b/NFLScores/__init__.py similarity index 74% rename from __init__.py rename to NFLScores/__init__.py index d139328..68cffcb 100644 --- a/__init__.py +++ b/NFLScores/__init__.py @@ -6,7 +6,7 @@ ### """ -NFLScores2: Fetches scores and game information from NFL.com +NFLScores: Fetches scores and game information from NFL.com """ import sys @@ -18,14 +18,17 @@ from supybot import world __version__ = "" # XXX Replace this with an appropriate author or supybot.Author instance. -__author__ = supybot.authors.unknown +__author__ = supybot.Author('cottongin', 'cottongin', + 'cottongin@cottongin.club') +__maintainer__ = getattr(supybot.authors, 'oddluck', + supybot.Author('oddluck', 'oddluck', 'oddluck@riseup.net')) # 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__ = '' +__url__ = 'https://github.com/oddluck/limnoria-plugins/' from . import config from . import plugin diff --git a/config.py b/NFLScores/config.py similarity index 80% rename from config.py rename to NFLScores/config.py index 35da5b3..efd909e 100644 --- a/config.py +++ b/NFLScores/config.py @@ -8,7 +8,7 @@ from supybot import conf, registry try: from supybot.i18n import PluginInternationalization - _ = PluginInternationalization('NFLScores2') + _ = PluginInternationalization('NFLScores') except: # Placeholder that allows to run the plugin on a bot # without the i18n module @@ -21,12 +21,12 @@ def configure(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('NFLScores2', True) + conf.registerPlugin('NFLScores', True) -NFLScores2 = conf.registerPlugin('NFLScores2') +NFLScores = conf.registerPlugin('NFLScores') # This is where your configuration variables (if any) should go. For example: -# conf.registerGlobalValue(NFLScores2, 'someConfigVariableName', +# conf.registerGlobalValue(NFLScores, 'someConfigVariableName', # registry.Boolean(False, _("""Help for someConfigVariableName."""))) diff --git a/plugin.py b/NFLScores/plugin.py similarity index 99% rename from plugin.py rename to NFLScores/plugin.py index 1b77a3d..bb04b38 100644 --- a/plugin.py +++ b/NFLScores/plugin.py @@ -13,7 +13,7 @@ from supybot import utils, plugins, ircutils, callbacks from supybot.commands import * try: from supybot.i18n import PluginInternationalization - _ = PluginInternationalization('NFLScores2') + _ = PluginInternationalization('NFLScores') except ImportError: # Placeholder that allows to run the plugin on a bot # without the i18n module @@ -42,7 +42,7 @@ def getValidDateFmt(irc, msg, args, state): del args[0] addConverter('validDate', getValidDateFmt) -class NFLScores2(callbacks.Plugin): +class NFLScores(callbacks.Plugin): """Fetches scores and game information from NFL.com""" threaded = True @@ -512,7 +512,7 @@ class NFLScores2(callbacks.Plugin): return ircutils.underline(string) -Class = NFLScores2 +Class = NFLScores # vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79: diff --git a/test.py b/NFLScores/test.py similarity index 68% rename from test.py rename to NFLScores/test.py index fc41bb2..8a42ab7 100644 --- a/test.py +++ b/NFLScores/test.py @@ -8,8 +8,8 @@ from supybot.test import * -class NFLScores2TestCase(PluginTestCase): - plugins = ('NFLScores2',) +class NFLScoresTestCase(PluginTestCase): + plugins = ('NFLScores',) # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: