forked from mindiell/hebdobot
32 lines
1.2 KiB
Python
32 lines
1.2 KiB
Python
|
import logger
|
||
|
|
||
|
|
||
|
class Status:
|
||
|
def process(self, bot, channel, sender, message):
|
||
|
"""
|
||
|
Si la commande est bonne, le bot renvoie son statut actuel à l'utilisateur.
|
||
|
"""
|
||
|
if message.lower() in ("!statut", "!status"):
|
||
|
logger.info("!status caught.")
|
||
|
|
||
|
bot.send(sender, f"{sender}, voici l'état d'Hebdobot :")
|
||
|
bot.send(sender, f" revue en cours : {bot.review is not None}")
|
||
|
if bot.review.is_started:
|
||
|
bot.send(sender, f" animateur revue : {bot.review.owner}")
|
||
|
else:
|
||
|
bot.send(sender, " animateur revue : none")
|
||
|
# TODO: finish this part
|
||
|
# ~ bot.send_multiple(
|
||
|
# ~ sender,
|
||
|
# ~ (
|
||
|
# ~ f" Alias settings : {len(bot.alias)}",
|
||
|
# ~ f" Identica settings : {}",
|
||
|
# ~ f" Privatebin settings : {bot.review.pastebin}",
|
||
|
# ~ f" Mastodon settings : {}",
|
||
|
# ~ f" Cron settings : {len(bot.cron.settings)}"
|
||
|
# ~ f" Review Wait Time : {bot.review_wait}",
|
||
|
# ~ ),
|
||
|
# ~ )
|
||
|
|
||
|
return True
|