diff options
| author | 2020-02-23 17:00:49 -0800 | |
|---|---|---|
| committer | 2020-03-22 15:54:33 -0700 | |
| commit | 439c0dddaecec3da3c804dffda14342ed3ce055d (patch) | |
| tree | a23d572a7bce30042ecdc780f2dd8649950f0dc4 | |
| parent | HelpChannels: create boilerplate extension and cog (diff) | |
HelpChannels: load element names from JSON
| -rw-r--r-- | bot/cogs/help_channels.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bot/cogs/help_channels.py b/bot/cogs/help_channels.py index e4febdcaa..561c4d2c9 100644 --- a/bot/cogs/help_channels.py +++ b/bot/cogs/help_channels.py @@ -1,8 +1,15 @@ +import json +from pathlib import Path + from discord.ext import commands from bot.bot import Bot +with Path("bot/resources/elements.json").open(encoding="utf-8") as elements_file: + ELEMENTS = json.load(elements_file) + + class HelpChannels(commands.Cog): """Manage the help channel system of the guild.""" |