diff options
| author | 2019-09-23 18:26:26 +1000 | |
|---|---|---|
| committer | 2019-09-23 18:26:26 +1000 | |
| commit | 083759b2cca39a7a7e49fa30ce6c9bf8f5319a1d (patch) | |
| tree | 2296c439ab6ab3d73cbda0b4531e6265d9424242 /bot/seasons/halloween/hacktoberstats.py | |
| parent | Merge pull request #270 from python-discord/flake8-annotations (diff) | |
| parent | Reflect persist module changes in hacktober cog. (diff) | |
Docker Refining & Persistent Data Support (#273)
Docker Refining & Persistent Data Support
Diffstat (limited to 'bot/seasons/halloween/hacktoberstats.py')
| -rw-r--r-- | bot/seasons/halloween/hacktoberstats.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/seasons/halloween/hacktoberstats.py b/bot/seasons/halloween/hacktoberstats.py index 0f513953..20797037 100644 --- a/bot/seasons/halloween/hacktoberstats.py +++ b/bot/seasons/halloween/hacktoberstats.py @@ -10,6 +10,8 @@ import aiohttp import discord from discord.ext import commands +from bot.utils.persist import make_persistent + log = logging.getLogger(__name__) CURRENT_YEAR = datetime.now().year # Used to construct GH API query @@ -21,7 +23,7 @@ class HacktoberStats(commands.Cog): def __init__(self, bot: commands.Bot): self.bot = bot - self.link_json = Path("bot/resources/github_links.json") + self.link_json = make_persistent(Path("bot", "resources", "halloween", "github_links.json")) self.linked_accounts = self.load_linked_users() @commands.group(name="hacktoberstats", aliases=("hackstats",), invoke_without_command=True) |