From ef68689900dc0c22fe8e68beb913b6d9e0198b78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Wed, 16 May 2018 20:25:24 +0200 Subject: [PATCH] Compress bellagram regexps --- bot.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bot.py b/bot.py index 0d85e12..944e4f7 100644 --- a/bot.py +++ b/bot.py @@ -56,10 +56,7 @@ class TwitchBot(irc.bot.SingleServerIRCBot): (QUOTE_REMOVED_PATTERN, self.remove_quote), ] self.commands = [ - (re.compile(r'^!bellagram$'), self.bellagram), - (re.compile(r'^!bellapics$'), self.bellagram), - (re.compile(r'^!instabella$'), self.bellagram), - (re.compile(r'^!instagram$'), self.bellagram), + (re.compile(r'^!(bella(gram|pics)|insta(gram|bella))$'), self.bellagram), (re.compile(r'^!lastquote$'), self.last_quote), (re.compile(r'^!findquote\s+(?P")?(?P.+)(?(q)")$'), self.find_quote), (re.compile(r'^!sync(\s+(?P.+))?$'), self.sync),