Make hosts command general

This commit is contained in:
Joscha 2018-08-13 09:12:04 +00:00
parent 3911f707b2
commit b213690a3f

View file

@ -33,13 +33,14 @@ class InfoBot(yaboli.Bot):
await self.command_detail(room, message, command)
await self.command_help(room, message, command, argstr)
await self.command_hosts(room, message, command, argstr)
async def on_command_general(self, room, mesage, command, argstr):
if not argstr:
await self.botrulez_ping(room, message, command)
await self.botrulez_help(room, message, command, text="I count the types of clients in my nick")
await self.command_hosts(room, message, command, argstr)
@yaboli.command("help")
async def command_help(self, room, message, argstr):
nick = mention(room.session.nick)