Skip to content

Commit

Permalink
unidecode for more places
Browse files Browse the repository at this point in the history
  • Loading branch information
FO-nTTaX committed Feb 18, 2023
1 parent c8883bd commit 9e6d12b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ftsbot/cogs/antispam.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,14 @@ async def on_message(
bad_words = [
'liquidpedia',
'liquidredia',
'liquidpeia',
]
if any(bad_word in unidecode(message.content).lower() for bad_word in bad_words):
await message.channel.send(
embed=discord.Embed(
colour=discord.Colour(0xff0000),
description=(
'It is **Liquipedia**, only one d in the name! Naughty-counter of '
'It is **Liquipedia**, please educate youurself on the spelling! Naughty-counter of '
+ message.author.name + ' has been incremented.'
)
)
Expand Down

0 comments on commit 9e6d12b

Please sign in to comment.