mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 10:03:40 +01:00
Remove nightmare bypass bypass
This commit is contained in:
parent
1bf2f813b2
commit
0ca7e76c7d
1 changed files with 0 additions and 12 deletions
|
@ -119,18 +119,6 @@ class McDonaldsCog(commands.Cog):
|
|||
return
|
||||
|
||||
async with self.lock:
|
||||
NIGHTMARE_REGEX = re.compile(r"(\|\|.+\|\|)?(?P<username>[a-zA-Z0-9]{2,32}).*")
|
||||
if m := NIGHTMARE_REGEX.match(message.content):
|
||||
username = m.group("username")
|
||||
member = discord.utils.get(message.guild.members, name=username)
|
||||
if member:
|
||||
author = member
|
||||
self.log.info(
|
||||
"Nightmare bypass, matched message content to username %s, which resolved to %r.",
|
||||
username,
|
||||
member
|
||||
)
|
||||
|
||||
async with McDataBase() as db:
|
||||
if (last_info := await db.get_break(author.id)) is not None:
|
||||
if message.content.upper() != "MCDONALDS!":
|
||||
|
|
Loading…
Reference in a new issue