Adapt to new botrulez args

This commit is contained in:
Joscha 2018-07-27 19:19:10 +00:00
parent 09eb377135
commit 11b564e088

View file

@ -3,9 +3,7 @@ import random
import yaboli
from yaboli.utils import *
# List of rooms kept in separate file, which is .gitignore'd
import join_rooms
from join_rooms import join_rooms # List of rooms kept in separate file, which is .gitignore'd
ROLL = r"[!/]roll (\d+)d(\d+)\s*(\+\s*(\d+))?"
@ -19,8 +17,8 @@ class Roller(yaboli.Bot):
)
await self.botrulez_ping_general(room, message)
await self.botrulez_ping_specific(room, message)
await self.botrulez_help_general(room, message, help_text="I roll dice")
await self.botrulez_help_specific(room, message, help_text=long_help)
await self.botrulez_help_general(room, message, text="I roll dice")
await self.botrulez_help_specific(room, message, text=long_help)
await self.botrulez_uptime(room, message)
await self.botrulez_kill(room, message)
await self.botrulez_restart(room, message)
@ -50,7 +48,7 @@ class Roller(yaboli.Bot):
def main():
bot = Roller("Roller", "roller.cookie")
join_rooms.join_rooms(bot)
join_rooms(bot)
asyncio.get_event_loop().run_forever()
if __name__ == "__main__":