Update jokes.py
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user