diff options
| -rw-r--r-- | bot/cogs/free.py | 4 | ||||
| -rw-r--r-- | bot/constants.py | 7 | ||||
| -rw-r--r-- | config-default.yml | 3 |
3 files changed, 13 insertions, 1 deletions
diff --git a/bot/cogs/free.py b/bot/cogs/free.py index 00e5fb8bb..4566ade5f 100644 --- a/bot/cogs/free.py +++ b/bot/cogs/free.py @@ -4,6 +4,8 @@ from datetime import datetime from discord import Colour, Embed, Member, utils from discord.ext.commands import BucketType, Context, command, cooldown +from bot.constants import Categories + log = logging.getLogger(__name__) @@ -11,7 +13,7 @@ log = logging.getLogger(__name__) class Free: """Tries to figure out which help channels are free.""" - PYTHON_HELP_ID = 356013061213126657 + PYTHON_HELP_ID = Categories.python_help TIME_INACTIVE = 300 @command(name="free", aliases=('f',)) diff --git a/bot/constants.py b/bot/constants.py index bbe6c1604..aae9b05e5 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -315,6 +315,13 @@ class CleanMessages(metaclass=YAMLGetter): message_limit: int +class Categories(metaclass=YAMLGetter): + section = "guild" + subsection = "categories" + + python_help: int + + class Channels(metaclass=YAMLGetter): section = "guild" subsection = "channels" diff --git a/config-default.yml b/config-default.yml index ad87e44ac..7e2a22cc9 100644 --- a/config-default.yml +++ b/config-default.yml @@ -85,6 +85,9 @@ style: guild: id: 267624335836053506 + categories: + python_help: 356013061213126657 + channels: admins: &ADMINS 365960823622991872 announcements: 354619224620138496 |