silver text for AI matches

This commit is contained in:
deathbybandaid 2019-06-05 12:30:05 -04:00
parent 1fde43d79c
commit 538466d122

View File

@ -112,7 +112,8 @@ class SpiceBot_AI():
message = self.bot_message_precipher(bot, trigger, message)
aiml_response = self.aiml_kernel.respond(message, nick_id)
aiml_response = self.bot_message_decipher(bot, trigger, aiml_response)
if aiml_response:
aiml_response = self.bot_message_decipher(bot, trigger, aiml_response)
self.save_nick_session(nick, nick_id)
self.save_brain()
@ -185,6 +186,8 @@ class SpiceBot_AI():
for pronounitem in pronounsdict[triggergendertype].keys():
aiml_response = aiml_response.replace("TRIGGERPRONOUN" + pronounitem, pronounsdict[triggergendertype][pronounitem])
aiml_response = "\x0315" + aiml_response + "\x03"
return aiml_response
def getPredicate(self, predicate, nick, nick_id=None):