aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-02-28 21:16:02 -0800
committerGravatar MarkKoz <[email protected]>2020-03-22 15:54:39 -0700
commit1cd781f787c861790036f02f5c9c0ed3fa1d27cd (patch)
tree6b66aa2022b135a0736b9360ddfda854dd79b4d5
parentResources: map element names to alphabetic indices (diff)
Constants: add constant for max total help channels
Represents the total number of help channels across all 3 categories.
-rw-r--r--bot/constants.py1
-rw-r--r--config-default.yml4
2 files changed, 5 insertions, 0 deletions
diff --git a/bot/constants.py b/bot/constants.py
index 5b50050d6..2f484f0ad 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -540,6 +540,7 @@ class HelpChannels(metaclass=YAMLGetter):
cmd_whitelist: List[int]
idle_minutes: int
max_available: int
+ max_total_channels: int
name_prefix: str
diff --git a/config-default.yml b/config-default.yml
index c095aa30b..a24092235 100644
--- a/config-default.yml
+++ b/config-default.yml
@@ -525,6 +525,10 @@ help_channels:
# Maximum number of channels to put in the available category
max_available: 2
+ # Maximum number of channels across all 3 categories
+ # Note Discord has a hard limit of 50 channels per category, so this shouldn't be > 50
+ max_total_channels: 50
+
# Prefix for help channel names
name_prefix: 'help-'