Source code for president.modules.sts

# This file is placed in the Public Domain.
#
# pylint: disable=C,I,R,W0401,W0622
# flake8: noqa


"status of bots"


from ..bus    import Bus
from ..object import printable


[docs]def sts(event): nmr = 0 for bot in Bus.objs: if 'state' in dir(bot): event.reply(printable(bot.state, skip='lastline')) nmr += 1 if not nmr: event.reply("no status")