hebdobot/hooks/version.py

13 lines
323 B
Python
Raw Permalink 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.VERSION)
2024-01-11 08:17:25 +01:00
return True