Compress bellagram regexps

master
Nikola Forró 7 years ago
parent ebdc67b85b
commit ef68689900

@ -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<q>")?(?P<filter>.+)(?(q)")$'), self.find_quote),
(re.compile(r'^!sync(\s+(?P<since>.+))?$'), self.sync),

Loading…
Cancel
Save