mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 10:22:31 -05:00
Prevent everyone mention in poll
This commit is contained in:
@@ -229,6 +229,10 @@ class General:
|
||||
await self.endpoll(message)
|
||||
return
|
||||
if not self.getPollByChannel(message):
|
||||
check = " ".join(text).lower()
|
||||
if "@everyone" in check or "@here" in check:
|
||||
await self.bot.say("Nice try.")
|
||||
return
|
||||
p = NewPoll(message, self)
|
||||
if p.valid:
|
||||
self.poll_sessions.append(p)
|
||||
|
||||
Reference in New Issue
Block a user