diff options
author | 2021-04-02 14:53:45 +0100 | |
---|---|---|
committer | 2021-04-02 14:53:45 +0100 | |
commit | aa4d16acca8b9ccf8ce395c70dad416506021c59 (patch) | |
tree | 54a2d083de3a0527c300a09e548ee0a97305f6bc /bot/exts/evergreen/issues.py | |
parent | Don't allow users to run the issue command in DMs, given error feedback. (diff) | |
parent | Merge branch 'main' into Handle-DMChannels (diff) |
Merge branch 'Handle-DMChannels' of github.com:ChrisLovering/sir-lancebot into Handle-DMChannels
Diffstat (limited to 'bot/exts/evergreen/issues.py')
-rw-r--r-- | bot/exts/evergreen/issues.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bot/exts/evergreen/issues.py b/bot/exts/evergreen/issues.py index 0f0be33a..ca0e4494 100644 --- a/bot/exts/evergreen/issues.py +++ b/bot/exts/evergreen/issues.py @@ -33,9 +33,11 @@ if GITHUB_TOKEN := Tokens.github: REQUEST_HEADERS["Authorization"] = f"token {GITHUB_TOKEN}" WHITELISTED_CATEGORIES = ( - Categories.devprojects, Categories.media, Categories.development + Categories.development, Categories.devprojects, Categories.media, Categories.staff +) +WHITELISTED_CHANNELS_ON_MESSAGE = ( + Channels.organisation, Channels.mod_meta, Channels.mod_tools, Channels.staff_voice ) -WHITELISTED_CHANNELS_ON_MESSAGE = (Channels.organisation, Channels.mod_meta, Channels.mod_tools) CODE_BLOCK_RE = re.compile( r"^`([^`\n]+)`" # Inline codeblock |