From 5cd8158221af200ca6c557ba1f82fd1dd51ef655 Mon Sep 17 00:00:00 2001 From: jsl12 <32917998+jsl12@users.noreply.github.com> Date: Thu, 19 May 2022 21:36:50 -0500 Subject: [PATCH] slight change to CumJoke regex \w to \S --- src/kwaylon/jokes/jokes.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/kwaylon/jokes/jokes.py b/src/kwaylon/jokes/jokes.py index d0034df..d0b58ea 100644 --- a/src/kwaylon/jokes/jokes.py +++ b/src/kwaylon/jokes/jokes.py @@ -11,7 +11,6 @@ LOGGER = logging.getLogger(__name__) # TODO implement new jokes -# - j'accuse # - egos # - money is no option # - we're young, hot, and rich @@ -38,7 +37,7 @@ class CumJoke(base.Joke): 'cumming', 'cummed' ] - return re.compile(f"(? re.Pattern: - return re.compile('like this', re.IGNORECASE) + return re.compile('not like this', re.IGNORECASE) class ChiliJoke(base.GifJoke): @@ -159,7 +158,7 @@ class GoodBot(base.Joke): 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='kaylon')) - + class BigFan(base.GifJoke): url = 'https://c.tenor.com/qgrHA6RFg4EAAAAC/electric-fan-wind.gif' @@ -167,8 +166,9 @@ class BigFan(base.GifJoke): @property def regex(self) -> re.Pattern: return re.compile('big fan', re.IGNORECASE) - - class Blackface(base.Joke): + + +class Blackface(base.Joke): @property def regex(self) -> re.Pattern: return re.compile('blackface', re.IGNORECASE)