Change name format
This commit is contained in:
parent
a48b35e54d
commit
324df6ca6a
1 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ class InfoBot(yaboli.Bot):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
|
|
||||||
self.bot_description = ("This bot displays information about the clients connected to the\n"
|
self.bot_description = ("This bot displays information about the clients connected to the\n"
|
||||||
"current room in its nick: (<people>p<bots>b<lurkers>l)\n"
|
"current room in its nick: (<people>p <bots>b <lurkers>l)\n"
|
||||||
"Created by @Garmy using yaboli (Yet Another Bot Library)")
|
"Created by @Garmy using yaboli (Yet Another Bot Library)")
|
||||||
|
|
||||||
self.add_command("info", self.info_command, "Show more detailed info.",
|
self.add_command("info", self.info_command, "Show more detailed info.",
|
||||||
|
|
@ -32,7 +32,7 @@ class InfoBot(yaboli.Bot):
|
||||||
Change the name to display the correct values.
|
Change the name to display the correct values.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
nick = "\001({}p{}b{}l)".format(
|
nick = "\001({}p {}b {}l)".format(
|
||||||
len(self.room.get_people()),
|
len(self.room.get_people()),
|
||||||
len(self.room.get_bots()),
|
len(self.room.get_bots()),
|
||||||
len(self.room.get_lurkers())
|
len(self.room.get_lurkers())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue