aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-07-07 12:15:24 -0700
committerGravatar MarkKoz <[email protected]>2020-07-07 12:15:24 -0700
commit36330b1e386f1d3964eb34f5c5cc4afdf988358f (patch)
tree4aa4ad843830f3a20b9441523a77be3dd18fdffb
parentPrevent bot from mentioning roles (diff)
Allow owners, admins, and mods roles to be pinged
-rw-r--r--bot/__main__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/__main__.py b/bot/__main__.py
index 7e92d1a25..37e62c2f1 100644
--- a/bot/__main__.py
+++ b/bot/__main__.py
@@ -24,12 +24,13 @@ sentry_sdk.init(
]
)
+allowed_roles = [discord.Object(id_) for id_ in constants.MODERATION_ROLES]
bot = Bot(
command_prefix=when_mentioned_or(constants.Bot.prefix),
activity=discord.Game(name="Commands: !help"),
case_insensitive=True,
max_messages=10_000,
- allowed_mentions=discord.AllowedMentions(everyone=False, roles=False)
+ allowed_mentions=discord.AllowedMentions(everyone=False, roles=allowed_roles)
)
# Internal/debug