Initial commit.

This commit is contained in:
oddluck 2019-12-05 09:45:11 +00:00
parent 621c12b99e
commit adba9a01db
8 changed files with 11 additions and 6 deletions

View File

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

View File

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

View File

@ -0,0 +1,3 @@
requests
pendulum
beautifulsoup4

View File

@ -1 +0,0 @@
# Stub so local is a module, used for third-party modules