mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-26 04:51:09 -05:00
Initial commit.
This commit is contained in:
parent
621c12b99e
commit
adba9a01db
@ -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
|
@ -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:
|
3
CFBScores/requirements.txt
Normal file
3
CFBScores/requirements.txt
Normal file
@ -0,0 +1,3 @@
|
||||
requests
|
||||
pendulum
|
||||
beautifulsoup4
|
@ -1 +0,0 @@
|
||||
# Stub so local is a module, used for third-party modules
|
Loading…
x
Reference in New Issue
Block a user