aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris <[email protected]>2021-03-16 17:21:28 +0000
committerGravatar Chris <[email protected]>2021-03-16 17:21:28 +0000
commit6b9c95458f5f89496741f187d187c2b93561c839 (patch)
tree0e4d232dedea5e7315258e2a91d767833a29171e
parentMerge pull request #1468 from python-discord/bug/info/bot-xk/defcon-threshold... (diff)
Split out help channel idle time constants
This allows us to configure the idle time allowed for claiments seperate from tohers.
-rw-r--r--bot/constants.py3
-rw-r--r--config-default.yml8
2 files changed, 8 insertions, 3 deletions
diff --git a/bot/constants.py b/bot/constants.py
index 394d59a73..b4d702e1d 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -592,7 +592,8 @@ class HelpChannels(metaclass=YAMLGetter):
enable: bool
claim_minutes: int
cmd_whitelist: List[int]
- idle_minutes: int
+ idle_minutes_claimant: int
+ idle_minutes_others: int
deleted_idle_minutes: int
max_available: int
max_total_channels: int
diff --git a/config-default.yml b/config-default.yml
index 49d7f84ac..9388ecb99 100644
--- a/config-default.yml
+++ b/config-default.yml
@@ -468,8 +468,12 @@ help_channels:
cmd_whitelist:
- *HELPERS_ROLE
- # Allowed duration of inactivity before making a channel dormant
- idle_minutes: 30
+ # Allowed duration of inactivity by claimant before making a channel dormant
+ idle_minutes_claimant: 30
+
+ # Allowed duration of inactivity by others before making a channel dormant
+ # `idle_minutes_claimant` must also be met, before a channel is closed
+ idle_minutes_others: 30
# Allowed duration of inactivity when channel is empty (due to deleted messages)
# before message making a channel dormant