forked from mindiell/hebdobot
16 lines
434 B
Python
16 lines
434 B
Python
|
import logger
|
||
|
|
||
|
|
||
|
class Thanks:
|
||
|
def process(self, bot, channel, sender, message):
|
||
|
"""
|
||
|
Le message est pris en compte si l'utilisateur remercie le bot.
|
||
|
"""
|
||
|
if message.lower() == "!merci" or (
|
||
|
bot.nickname.lower() in message.lower() and "merci" in message
|
||
|
):
|
||
|
logger.info("!merci caught.")
|
||
|
bot.send(channel, f"{sender}, de rien \\o/")
|
||
|
|
||
|
return True
|