fixed blackface joke

This commit is contained in:
John Lancaster
2023-06-10 10:11:40 -05:00
parent c2467e126e
commit 9c09a6778b

View File

@@ -174,5 +174,5 @@ class Blackface(base.Joke):
return re.compile('blackface', re.IGNORECASE) return re.compile('blackface', re.IGNORECASE)
async def respond(self, message: Message, client: Client, match: re.Match): async def respond(self, message: Message, client: Client, match: re.Match):
if helpers.valid_word(match.group(1)): if helpers.valid_word(match.group(0)):
await message.add_reaction(utils.get(client.emojis, name='blackface')) await message.add_reaction(utils.get(client.emojis, name='blackface'))