Change !info message format

This commit is contained in:
Joscha 2016-05-25 01:31:34 +02:00
parent 802786544f
commit a22708421d

View file

@ -96,15 +96,8 @@ class InfoBot(yaboli.Bot):
bots = len(self.room.get_bots()) bots = len(self.room.get_bots())
lurkers = len(self.room.get_lurkers()) lurkers = len(self.room.get_lurkers())
msg = "people: {}\n with accounts: {}\nbots: {}\nlurkers: {}\n\ntotal: {}\ntotal visible: {}" msg = "people: {} (with accounts: {})\nbots: {}\nlurkers: {}\ntotal: {}"
msg = msg.format( msg = msg.format(people, accounts, bots, lurkers, people + bots + lurkers)
people,
accounts,
bots,
lurkers,
people + bots + lurkers,
people + bots
)
self.room.send_message(msg, message.id) self.room.send_message(msg, message.id)