diff --git a/README.md b/CFBScores/README.md similarity index 100% rename from README.md rename to CFBScores/README.md diff --git a/__init__.py b/CFBScores/__init__.py similarity index 75% rename from __init__.py rename to CFBScores/__init__.py index 9a39a68..793d593 100644 --- a/__init__.py +++ b/CFBScores/__init__.py @@ -6,7 +6,7 @@ ### """ -CFBScores: Fetches CFB scores +CFBScores: Fetches College Football scores """ 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/abbrv.json b/CFBScores/abbrv.json similarity index 100% rename from abbrv.json rename to CFBScores/abbrv.json diff --git a/config.py b/CFBScores/config.py similarity index 100% rename from config.py rename to CFBScores/config.py diff --git a/plugin.py b/CFBScores/plugin.py similarity index 99% rename from plugin.py rename to CFBScores/plugin.py index a124181..4c99f74 100644 --- a/plugin.py +++ b/CFBScores/plugin.py @@ -12,7 +12,7 @@ import json import html from bs4 import BeautifulSoup import re - +import os from supybot import utils, plugins, ircutils, callbacks, schedule from supybot.commands import * try: @@ -41,7 +41,7 @@ class CFBScores(callbacks.Plugin): self._current_week = 0 self._cfb_byes = {} - with open("abbrv.json", 'r') as json_file: + with open("{0}/abbrv.json".format(os.path.dirname(os.path.abspath(__file__))), 'r') as json_file: self.abbrv = json.load(json_file) if not self.abbrv: diff --git a/CFBScores/requirements.txt b/CFBScores/requirements.txt new file mode 100644 index 0000000..a51a020 --- /dev/null +++ b/CFBScores/requirements.txt @@ -0,0 +1,3 @@ +requests +pendulum +beautifulsoup4 \ No newline at end of file diff --git a/test.py b/CFBScores/test.py similarity index 100% rename from test.py rename to CFBScores/test.py diff --git a/local/__init__.py b/local/__init__.py deleted file mode 100644 index e86e97b..0000000 --- a/local/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# Stub so local is a module, used for third-party modules