From ccbe67e04c3b55f5e96401f651c9d15ae33dbaa5 Mon Sep 17 00:00:00 2001 From: Joscha Date: Fri, 27 Jul 2018 23:53:59 +0000 Subject: [PATCH] Fix syntax error not being a reply --- roller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roller.py b/roller.py index d31e3fb..78f7492 100644 --- a/roller.py +++ b/roller.py @@ -36,7 +36,7 @@ class Roller(yaboli.Bot): result = 0 resultstr = "" - rest = match.group(1) + rest = match.group(2) while True: mthrow, mthrowrest = self.match_and_split(THROW, rest) madvantage, madvantagerest = self.match_and_split(ADVANTAGE, rest) @@ -60,7 +60,7 @@ class Roller(yaboli.Bot): r, rstr = self.number(amount) rest = mnumberrest elif rest: - await room.send(f"Syntax error at: {rest!r}") + await room.send(f"Syntax error at: {rest!r}", message.mid) return else: break