Fix syntax error not being a reply

This commit is contained in:
Joscha 2018-07-27 23:53:59 +00:00
parent 4b5b5fd1f2
commit ccbe67e04c

View file

@ -36,7 +36,7 @@ class Roller(yaboli.Bot):
result = 0 result = 0
resultstr = "" resultstr = ""
rest = match.group(1) rest = match.group(2)
while True: while True:
mthrow, mthrowrest = self.match_and_split(THROW, rest) mthrow, mthrowrest = self.match_and_split(THROW, rest)
madvantage, madvantagerest = self.match_and_split(ADVANTAGE, rest) madvantage, madvantagerest = self.match_and_split(ADVANTAGE, rest)
@ -60,7 +60,7 @@ class Roller(yaboli.Bot):
r, rstr = self.number(amount) r, rstr = self.number(amount)
rest = mnumberrest rest = mnumberrest
elif rest: elif rest:
await room.send(f"Syntax error at: {rest!r}") await room.send(f"Syntax error at: {rest!r}", message.mid)
return return
else: else:
break break