diff options
| author | 2020-05-21 11:47:39 +0300 | |
|---|---|---|
| committer | 2020-05-21 11:47:39 +0300 | |
| commit | 6c5979b88961cb1df3d669e07ae108d12e698119 (patch) | |
| tree | 2d225d12758fb445c23c93849b8219f19e6e0cff | |
| parent | Merge pull request #858 from python-discord/decorator-factory-mutability-tag (diff) | |
Config: Added new `HelpChannels` config `deleted_idle_minutes`
This show how much minutes should this wait before making channel
dormant when no messages in channel (original message deleted).
| -rw-r--r-- | bot/constants.py | 1 | ||||
| -rw-r--r-- | config-default.yml | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/bot/constants.py b/bot/constants.py index fd280e9de..3003c9d36 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -541,6 +541,7 @@ class HelpChannels(metaclass=YAMLGetter): claim_minutes: int cmd_whitelist: List[int] idle_minutes: int + deleted_idle_minutes: int max_available: int max_total_channels: int name_prefix: str diff --git a/config-default.yml b/config-default.yml index 83ea59016..2e8a777ba 100644 --- a/config-default.yml +++ b/config-default.yml @@ -529,6 +529,10 @@ help_channels: # Allowed duration of inactivity before making a channel dormant idle_minutes: 30 + # Allowed duration of inactivity when question message deleted + # and no one other sent before message making channel dormant. + deleted_idle_minutes: 5 + # Maximum number of channels to put in the available category max_available: 2 |