From b590f8b30f5b8deac48499b158592091d7b7d689 Mon Sep 17 00:00:00 2001 From: Andrei Date: Thu, 27 Apr 2017 17:30:27 -0700 Subject: [PATCH] Fix groups not being added to regex string --- disco/bot/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disco/bot/command.py b/disco/bot/command.py index 9a03ebe..c06e30f 100644 --- a/disco/bot/command.py +++ b/disco/bot/command.py @@ -235,7 +235,7 @@ class Command(object): group = '' if self.group: if self.group in self.plugin.bot.group_abbrev: - group = '(?:\w+)? '.format(self.plugin.bot.group_abbrev.get(self.group)) + group = '{}(?:\w+)? '.format(self.plugin.bot.group_abbrev.get(self.group)) else: group = self.group + ' ' return ('^{}({})' if grouped else '^{}(?:{})').format(