Fix infobot sometimes not updating its nick
This commit is contained in:
parent
948f509999
commit
71e1a177ab
1 changed files with 2 additions and 0 deletions
|
|
@ -156,6 +156,8 @@ class InfoBot(yaboli.Bot):
|
||||||
async def on_part(self, room, user):
|
async def on_part(self, room, user):
|
||||||
await self.update_nick(room)
|
await self.update_nick(room)
|
||||||
|
|
||||||
|
async def on_nick(self, room, user, from_nick, to_nick):
|
||||||
|
await self.update_nick(room)
|
||||||
|
|
||||||
# @yaboli.command("detail")
|
# @yaboli.command("detail")
|
||||||
# async def command_detail(self, room, message, argstr):
|
# async def command_detail(self, room, message, argstr):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue