From 6b88c28ebed2d7845789cc742d1dc068ef2570b6 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Fri, 10 May 2019 09:17:27 -0400 Subject: [PATCH] More AI development --- sopel_modules/SpiceBot_AI/AI.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sopel_modules/SpiceBot_AI/AI.py b/sopel_modules/SpiceBot_AI/AI.py index 682e1fa..ba91227 100644 --- a/sopel_modules/SpiceBot_AI/AI.py +++ b/sopel_modules/SpiceBot_AI/AI.py @@ -34,6 +34,16 @@ def bot_command_goodbye_b(bot, trigger): bot_command_goodbye(bot, trigger) +@sopel.module.rule(r'(?i)(thank|thanks) (you|),? $nickname[ \t]*$') +def bot_command_thanks(bot, trigger): + bot.reply("You're welcome.") + + +@sopel.module.rule('$nickname thank you', '$nickname thanks') +def bot_command_thanks_b(bot, trigger): + bot_command_thanks(bot, trigger) + + @sopel.module.rule('$nickname!') def exclaim(bot, trigger): bot.say(trigger.nick + '!')