From 13acfcb1507698049ce26e3fc05f67c1e6e159c0 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sun, 2 Jun 2019 20:52:08 -0400 Subject: [PATCH] test --- sopel_modules/SpiceBot/AI.py | 9 ++++----- sopel_modules/SpiceBot_Configs/aiml/bot_is_cool.aiml | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/sopel_modules/SpiceBot/AI.py b/sopel_modules/SpiceBot/AI.py index 38764ad..c80fe1d 100644 --- a/sopel_modules/SpiceBot/AI.py +++ b/sopel_modules/SpiceBot/AI.py @@ -98,14 +98,13 @@ class SpiceBot_AI(): return aiml_response def bot_message_precipher(self, bot, trigger, message): - message = message.replace(str(bot.nick), "bot.nick") - message = message.replace(str(trigger.nick), "trigger.nick") - bot.say(str(message)) + message = message.replace(str(bot.nick), "botnick") + message = message.replace(str(trigger.nick), "triggernick") return message def bot_message_decipher(self, bot, trigger, aiml_response): - aiml_response = aiml_response.replace("bot.nick", str(bot.nick)) - aiml_response = aiml_response.replace("trigger.nick", str(trigger.nick)) + aiml_response = aiml_response.replace("botnick", str(bot.nick)) + aiml_response = aiml_response.replace("triggernick", str(trigger.nick)) return aiml_response def check_user_import(self, nick, nick_id=None): diff --git a/sopel_modules/SpiceBot_Configs/aiml/bot_is_cool.aiml b/sopel_modules/SpiceBot_Configs/aiml/bot_is_cool.aiml index 6fc0b5b..63c6f22 100644 --- a/sopel_modules/SpiceBot_Configs/aiml/bot_is_cool.aiml +++ b/sopel_modules/SpiceBot_Configs/aiml/bot_is_cool.aiml @@ -1,6 +1,6 @@ -BOT\.NICK +BOTNICK