From: CMDR furrycat Date: Tue, 27 Sep 2016 14:51:39 +0000 (+0100) Subject: @mentions can contain bling. X-Git-Url: http://git.furryclan.net/?a=commitdiff_plain;h=03b4ffbf37afe2e4c7f4ae4a3c35727e8021514d;p=furrycat%2Fcatbot.git @mentions can contain bling. --- diff --git a/bot.py b/bot.py index f82434e..9093b36 100755 --- a/bot.py +++ b/bot.py @@ -211,7 +211,7 @@ def do_commands(message, command, raw, non_admin): m = re.match(r'\bbling\s+(\S+)', raw.lower()) if m is not None: url = m.group(1) - m = re.match(r'<@(\d+)>', url) + m = re.match(r'<@(!?\d+)>', url) if m is not None: other = None id = str(m.group(1))