mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
Prevent everyone mention in poll
This commit is contained in:
parent
67be0157f9
commit
893c38a313
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user