From 7ce7fd8f8bde776f30f94d25ba411b2d4b9a648d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Fri, 1 Mar 2019 10:44:56 +0100 Subject: [PATCH] Add !findclip alias --- clients/discord.py | 2 +- clients/twitch.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/discord.py b/clients/discord.py index 04b3f1b..e8ba840 100644 --- a/clients/discord.py +++ b/clients/discord.py @@ -61,7 +61,7 @@ class DiscordClient(discord.Client): (re.compile(r'^!findquote\s+(?P")?(?P.+)(?(q)")$'), self._do_findquote), (re.compile(r'^!(bella(gram|pics)|insta(gram|bella))$'), self._do_bellagram), (re.compile(r'^!yt\s+(?P")?(?P.+)(?(q)")$'), self._do_yt), - (re.compile(r'^!clip\s+(?P")?(?P.+)(?(q)")$'), self._do_clip), + (re.compile(r'^!(find)?clip\s+(?P")?(?P.+)(?(q)")$'), self._do_clip), (re.compile(r'^!cheese\s+(?P")?(?P.+)(?(q)")$'), self._do_cheese), (re.compile(r'^!nextstream$'), self._do_nextstream), ] diff --git a/clients/twitch.py b/clients/twitch.py index 6e856b2..6c6f1bf 100644 --- a/clients/twitch.py +++ b/clients/twitch.py @@ -102,7 +102,7 @@ class TwitchClient(irc.bot.SingleServerIRCBot): (re.compile(r'^!syncsubs$'), self._do_syncsubs), (re.compile(r'^!(bella(gram|pics)|insta(gram|bella))$'), self._do_bellagram), (re.compile(r'^!yt\s+(?P")?(?P.+)(?(q)")$'), self._do_yt), - (re.compile(r'^!clip\s+(?P")?(?P.+)(?(q)")$'), self._do_clip), + (re.compile(r'^!(find)?clip\s+(?P")?(?P.+)(?(q)")$'), self._do_clip), (re.compile(r'^!giveaway$'), self._do_giveaway), (re.compile(r'^!command\s+set\s+(?P")?(?P.+?)(?(q1)")\s+' r'(?P")?(?P.+)(?(q2)")$'), self._do_command_set),