From 1691f95eba1dc35a1dcea53cbded3f98b936c0e9 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 4 Jun 2019 14:15:52 -0400 Subject: [PATCH] test --- sopel_modules/SpiceBot/AI.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/sopel_modules/SpiceBot/AI.py b/sopel_modules/SpiceBot/AI.py index 01b7eb6..f42bf61 100644 --- a/sopel_modules/SpiceBot/AI.py +++ b/sopel_modules/SpiceBot/AI.py @@ -100,11 +100,23 @@ class SpiceBot_AI(): filereadgood = False # logs.log('SpiceBot_AI', "Error loading %s: %s (%s)" % ('aiml', e, aimlfile)) - if filereadgood and isinstance(dict_from_file, dict): + if filereadgood: self.dict["counts"] += 1 else: self.dict["failcounts"] += 1 + """def donothing(): + aiml_file_lines = [] + aiml_file = open(aimlfile, 'r') + lines = aiml_file.readlines() + for line in lines: + aiml_file_lines.append(line) + aiml_file.close() + + detected_lines = [] + for line in aiml_file_lines: + dothing = True""" + def on_message(self, bot, trigger, message): nick = Identifier(trigger.nick) nick_id = botdb.get_nick_id(nick, create=True)