Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion bot/exts/recruitment/helper_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import re

import arrow
import discord
from async_rediscache import RedisCache
from discord import Message
from discord.ext.commands import Cog
Expand Down Expand Up @@ -65,7 +66,8 @@ async def on_message(self, message: Message) -> None:

if self._is_question(message.content):
self.last_pinged = arrow.utcnow()
await message.reply(random.choice(self.MESSAGES))
allowed_mentions = discord.AllowedMentions(everyone=False, roles=[discord.Object(NEW_HELPER_ROLE_ID)])
await message.reply(random.choice(self.MESSAGES), allowed_mentions=allowed_mentions)
await self.cooldown_cache.set(self.CACHE_KEY, self.last_pinged.timestamp())


Expand Down