Adapt to new yaboli version
This commit is contained in:
parent
9c15ed9cd0
commit
a4378e3fe5
1 changed files with 2 additions and 4 deletions
|
|
@ -56,11 +56,11 @@ class PlusOne(yaboli.Bot):
|
|||
Count +1s awarded to users by other users.
|
||||
"""
|
||||
|
||||
async def created(self, room):
|
||||
async def on_created(self, room):
|
||||
room.pointsdb = PointDB(f"points-{room.roomname}.db")
|
||||
await room.pointsdb.initialize()
|
||||
|
||||
async def send(self, room, message):
|
||||
async def on_send(self, room, message):
|
||||
ping_text = ":bronze!?:"
|
||||
short_help = "/me counts :+1:s"
|
||||
long_help = (
|
||||
|
|
@ -84,8 +84,6 @@ class PlusOne(yaboli.Bot):
|
|||
|
||||
await self.trigger_plusone(room, message)
|
||||
|
||||
forward = send
|
||||
|
||||
@yaboli.command("points", specific=False, args=True)
|
||||
async def command_points(self, room, message, argstr):
|
||||
args = self.parse_args(argstr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue