Update jokes.py

This commit is contained in:
josephrtalley
2022-02-11 21:26:13 -06:00
committed by GitHub
parent 83e71fc2e9
commit 0b26076d0c

View File

@@ -166,3 +166,12 @@ class BigFan(base.GifJoke):
@property
def regex(self) -> re.Pattern:
return re.compile('big fan', re.IGNORECASE)
class Blackface(base.Joke):
@property
def regex(self) -> re.Pattern:
return re.compile('blackface', re.IGNORECASE)
async def respond(self, message: Message, client: Client, match: re.Match):
if helpers.valid_word(match.group(1)):
await message.add_reaction(utils.get(client.emojis, name='blackface'))