Adapt to new yaboli version
This commit is contained in:
parent
6706e50ba7
commit
c5ecfcd1a2
1 changed files with 1 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ ADVANTAGE = r"\s*([+-])?\s*(\d+)?([ad])d(\d+)" # 1: sign, 2: amount (default 2),
|
||||||
NUMBER = r"\s*([+-])?\s*(\d+)" # 1: sign, 2: number
|
NUMBER = r"\s*([+-])?\s*(\d+)" # 1: sign, 2: number
|
||||||
|
|
||||||
class Roller(yaboli.Bot):
|
class Roller(yaboli.Bot):
|
||||||
async def send(self, room, message):
|
async def on_send(self, room, message):
|
||||||
long_help = (
|
long_help = (
|
||||||
"!roll 2d4 - roll 2 4-sided dice\n"
|
"!roll 2d4 - roll 2 4-sided dice\n"
|
||||||
"!roll 2d4+5 - roll 2 4-sided dice with a bonus of 5\n"
|
"!roll 2d4+5 - roll 2 4-sided dice with a bonus of 5\n"
|
||||||
|
|
@ -35,8 +35,6 @@ class Roller(yaboli.Bot):
|
||||||
|
|
||||||
await self.trigger_roll(room, message)
|
await self.trigger_roll(room, message)
|
||||||
|
|
||||||
forward = send
|
|
||||||
|
|
||||||
@yaboli.trigger(ROLL)
|
@yaboli.trigger(ROLL)
|
||||||
async def trigger_roll(self, room, message, match):
|
async def trigger_roll(self, room, message, match):
|
||||||
result = 0
|
result = 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue