aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2020-10-17 19:16:34 +0200
committerGravatar Matteo Bertucci <[email protected]>2020-10-17 19:16:34 +0200
commit39ab2d8a2b00793ccf3ba51f21ece771624e24e0 (patch)
treeb0043d1298e1f0ce0fa52666dcb940f26e697b0a
parentMerge pull request #1240 from python-discord/mbaruh-inf-id (diff)
Allow !eval in #code-help-voice-2
-rw-r--r--bot/constants.py1
-rw-r--r--bot/exts/utils/snekbox.py2
-rw-r--r--config-default.yml1
3 files changed, 3 insertions, 1 deletions
diff --git a/bot/constants.py b/bot/constants.py
index 0a3e48616..99584ab6c 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -392,6 +392,7 @@ class Channels(metaclass=YAMLGetter):
bot_commands: int
change_log: int
code_help_voice: int
+ code_help_voice_2: int
cooldown: int
defcon: int
dev_contrib: int
diff --git a/bot/exts/utils/snekbox.py b/bot/exts/utils/snekbox.py
index 59a27a2be..cad451571 100644
--- a/bot/exts/utils/snekbox.py
+++ b/bot/exts/utils/snekbox.py
@@ -41,7 +41,7 @@ RAW_CODE_REGEX = re.compile(
MAX_PASTE_LEN = 10000
# `!eval` command whitelists
-EVAL_CHANNELS = (Channels.bot_commands, Channels.esoteric, Channels.code_help_voice)
+EVAL_CHANNELS = (Channels.bot_commands, Channels.esoteric, Channels.code_help_voice, Channels.code_help_voice_2)
EVAL_CATEGORIES = (Categories.help_available, Categories.help_in_use)
EVAL_ROLES = (Roles.helpers, Roles.moderators, Roles.admins, Roles.owners, Roles.python_community, Roles.partners)
diff --git a/config-default.yml b/config-default.yml
index c93ab9e0c..fd96ff2c6 100644
--- a/config-default.yml
+++ b/config-default.yml
@@ -192,6 +192,7 @@ guild:
# Voice
code_help_voice: 755154969761677312
+ code_help_voice_2: 766330079135268884
admins_voice: &ADMINS_VOICE 500734494840717332
staff_voice: &STAFF_VOICE 412375055910043655