import logger class Hello: def process(self, bot, channel, sender, message): """ Le message est pris en compte si l'utilisateur salue le bot. """ if message.lower() in ("!salut", "!bonjour", "!hello") or ( bot.nickname.lower() in message.lower() and any( [ word in message.lower() for word in ("bonjour", "salut", "hello", "yo", "hey", "hi") ] ) ): logger.info("!hello caught.") bot.send(channel, f"{sender}, bonjour \\o/") return True