hebdobot/hooks/input_participant.py

14 lines
428 B
Python

import logger
class InputParticipant:
def process(self, bot, channel, sender, message):
"""
Si le commentaire est ras, l'utilisateur est compté comme participant,
mais le message n'est pas considéré comme pris en compte.
"""
if message == "%ras" or message == "% ras":
logger.info("participant comment during review.")
bot.review.add_participant(sender)