Skip to content

Commit

Permalink
Revert "[WordFilter] Change filtered message text"
Browse files Browse the repository at this point in the history
This reverts commit f1851bd.
  • Loading branch information
Injabie3 committed Dec 26, 2023
1 parent f135248 commit d47693e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wordfilter/wordfilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,9 @@ async def checkWords(
# - Delete the message,
# - Notify on the channel that the message was filtered without showing context
# - DM user with the filtered context as per what we see usually.
filterNotify = "{0.author.mention} wasn't jolly enough!".format(msg)
filterNotify = "{0.author.mention} was filtered!".format(msg)
notifyMsg = await msg.channel.send(filterNotify)
filterNotify = "You weren't jolly enough! Your message was: \n"
filterNotify = "You were filtered! Your message was: \n"
embed = discord.Embed(
colour=random.choice(COLOURS),
description="{0.author.name}#{0.author.discriminator}: "
Expand All @@ -544,12 +544,12 @@ async def checkWords(
await asyncio.sleep(3)
await notifyMsg.delete()
elif (filteredMsg != originalMsg and oneWord) or allFiltered:
filterNotify = "{0.author.mention} wasn't jolly enough!".format(msg)
filterNotify = "{0.author.mention} was filtered!".format(msg)
notifyMsg = await msg.channel.send(filterNotify)
await asyncio.sleep(3)
await notifyMsg.delete()
else:
filterNotify = "{0.author.mention} wasn't jolly enough! Message was: \n".format(msg)
filterNotify = "{0.author.mention} was filtered! Message was: \n".format(msg)
embed = discord.Embed(
colour=random.choice(COLOURS),
description="{0.author.name}#{0.author.discriminator}: "
Expand Down

0 comments on commit d47693e

Please # to comment.