Merge pull request #2 from josephrtalley/master

Update jokes.py
This commit is contained in:
jsl12
2022-02-24 20:53:18 -06:00
committed by GitHub

View File

@@ -167,3 +167,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'))