Initial commit.

This commit is contained in:
oddluck 2019-12-05 07:21:06 +00:00
parent 12a55af8d3
commit d2354b7fcd
5 changed files with 15 additions and 12 deletions

View File

@ -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

View File

@ -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.""")))

View File

@ -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:

View File

@ -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: