aboutsummaryrefslogtreecommitdiffstats
path: root/bot/bot.py
diff options
context:
space:
mode:
authorGravatar Kieran Siek <[email protected]>2020-09-18 23:01:42 +0800
committerGravatar GitHub <[email protected]>2020-09-18 23:01:42 +0800
commit636cda284a5a2c2f51a17e87c8b71c0f6edcfb22 (patch)
tree3523b6eb11f5d752f9060dfba18dbd68a14ac1b0 /bot/bot.py
parentFix typo in casercipher help. (diff)
parentMerge pull request #442 from python-discord/reddit-command-fix (diff)
Merge branch 'master' into caesar-command
Diffstat (limited to 'bot/bot.py')
-rw-r--r--bot/bot.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bot/bot.py b/bot/bot.py
index 39ed8bbe..ffaf4284 100644
--- a/bot/bot.py
+++ b/bot/bot.py
@@ -10,7 +10,7 @@ from aiohttp import AsyncResolver, ClientSession, TCPConnector
from discord import DiscordException, Embed, Guild, User
from discord.ext import commands
-from bot.constants import Channels, Client
+from bot.constants import Channels, Client, MODERATION_ROLES
from bot.utils.decorators import mock_in_debug
log = logging.getLogger(__name__)
@@ -103,7 +103,7 @@ class SeasonalBot(commands.Bot):
return False
else:
- log.info(f"Asset successfully applied")
+ log.info("Asset successfully applied")
return True
@mock_in_debug(return_value=True)
@@ -203,7 +203,9 @@ class SeasonalBot(commands.Bot):
await self._guild_available.wait()
+_allowed_roles = [discord.Object(id_) for id_ in MODERATION_ROLES]
bot = SeasonalBot(
command_prefix=Client.prefix,
activity=discord.Game(name=f"Commands: {Client.prefix}help"),
+ allowed_mentions=discord.AllowedMentions(everyone=False, roles=_allowed_roles),
)