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.")
|
2024-04-01 19:27:52 +02:00
|
|
|
bot.send(channel, bot.VERSION)
|
2024-01-11 08:17:25 +01:00
|
|
|
|
2024-04-01 19:27:52 +02:00
|
|
|
return True
|