diff options
| author | 2020-04-28 01:29:09 +0200 | |
|---|---|---|
| committer | 2020-04-28 01:29:09 +0200 | |
| commit | 634dbc93645aebf87d102b1321001f2021def979 (patch) | |
| tree | 26dc3413dab6dfc302ef7f341a513e4c8cc3dd1f /config-default.yml | |
| parent | Insert help channels at the bottom of the category (diff) | |
Add option to ingore channels in help categories
As we want to add an "informational" channel to the `Python Help: Available` category, we need to make sure that the Help Channel System ignores that channel.
To do that, I've added an `is_excluded_channel` staticmethod that returns `True` if a channel is not a TextChannel or if it's in a special EXCLUDED_CHANNELS constant. This method is then used in the method that yields help channels from a category and in the `on_message` event listener that determines if a channel should be moved from `Available` to `Occupied`.
Diffstat (limited to 'config-default.yml')
| -rw-r--r-- | config-default.yml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config-default.yml b/config-default.yml index b0165adf6..78a2ff853 100644 --- a/config-default.yml +++ b/config-default.yml @@ -132,6 +132,9 @@ guild: meta: 429409067623251969 python_discussion: 267624335836053506 + # Python Help: Available + how_to_get_help: 704250143020417084 + # Logs attachment_log: &ATTACH_LOG 649243850006855680 message_log: &MESSAGE_LOG 467752170159079424 |