aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-02-23 17:22:28 -0800
committerGravatar MarkKoz <[email protected]>2020-03-22 15:54:33 -0700
commit01bf328bea69dfa773d42aab2fb43dcb2b218e0c (patch)
treed910a2d9980fe5e356c8246e752503718b4e6a1f
parentHelpChannels: load element names from JSON (diff)
Constants: add constants for HelpChannels cog
-rw-r--r--bot/constants.py8
-rw-r--r--config-default.yml11
2 files changed, 19 insertions, 0 deletions
diff --git a/bot/constants.py b/bot/constants.py
index 14f8dc094..4b47db03d 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -532,6 +532,14 @@ class Free(metaclass=YAMLGetter):
cooldown_per: float
+class HelpChannels(metaclass=YAMLGetter):
+ section = 'help_channels'
+
+ cmd_whitelist: List[int]
+ idle_minutes: int
+ max_available: int
+
+
class Mention(metaclass=YAMLGetter):
section = 'mention'
diff --git a/config-default.yml b/config-default.yml
index 5788d1e12..1f2b12412 100644
--- a/config-default.yml
+++ b/config-default.yml
@@ -512,6 +512,17 @@ mention:
message_timeout: 300
reset_delay: 5
+help_channels:
+ # Roles which are allowed to use the command which makes channels dormant
+ cmd_whitelist:
+ - *HELPERS_ROLE
+
+ # Allowed duration of inactivity before making a channel dormant
+ idle_minutes: 45
+
+ # Maximum number of channels to put in the available category
+ max_available: 2
+
redirect_output:
delete_invocation: true
delete_delay: 15