Fix syntax error not being a reply
This commit is contained in:
parent
4b5b5fd1f2
commit
ccbe67e04c
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue