hebdobot/bot/hooks/version.py

14 lines
333 B
Python
Raw Normal View History

2024-01-11 08:17:25 +01:00
import logger
class Version:
def process(self, bot, channel, sender, message):
"""
Si la commande est bonne, le bot renvoie sa version.
"""
if message.lower() == "!version":
logger.info("!version caught.")
bot.send(channel, bot.settings.VERSION)
return True