diff options
| author | 2020-02-23 18:17:02 -0800 | |
|---|---|---|
| committer | 2020-03-22 15:54:33 -0700 | |
| commit | db185326bace6eb249fc2867472ae7d770f249db (patch) | |
| tree | f40af04b83f2165a1bf6f0d217ca699ad6f6c05a | |
| parent | HelpChannels: add constants for active/dormant messages (diff) | |
Constants: add help category constants
The original category was re-purposed as the "in-use" category so that
deployment of the new system will not interrupt ongoing help sessions.
| -rw-r--r-- | bot/cogs/free.py | 2 | ||||
| -rw-r--r-- | bot/constants.py | 4 | ||||
| -rw-r--r-- | config-default.yml | 4 |
3 files changed, 7 insertions, 3 deletions
diff --git a/bot/cogs/free.py b/bot/cogs/free.py index 33b55e79a..99516fade 100644 --- a/bot/cogs/free.py +++ b/bot/cogs/free.py @@ -19,7 +19,7 @@ PER = Free.cooldown_per class Free(Cog): """Tries to figure out which help channels are free.""" - PYTHON_HELP_ID = Categories.python_help + PYTHON_HELP_ID = Categories.help_in_use @command(name="free", aliases=('f',)) @redirect_output(destination_channel=Channels.bot_commands, bypass_roles=STAFF_ROLES) diff --git a/bot/constants.py b/bot/constants.py index 4b47db03d..58a236546 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -356,7 +356,9 @@ class Categories(metaclass=YAMLGetter): section = "guild" subsection = "categories" - python_help: int + help_available: int + help_in_use: int + help_dormant: int class Channels(metaclass=YAMLGetter): diff --git a/config-default.yml b/config-default.yml index 1f2b12412..27143ff30 100644 --- a/config-default.yml +++ b/config-default.yml @@ -111,7 +111,9 @@ guild: id: 267624335836053506 categories: - python_help: 356013061213126657 + help_available: 691405807388196926 + help_in_use: 356013061213126657 + help_dormant: 691405908919451718 channels: announcements: 354619224620138496 |