test without bot db

This commit is contained in:
deathbybandaid 2019-06-05 19:50:53 -04:00
parent d33178d87c
commit cb0b0dce45

View File

@ -74,11 +74,11 @@ class SpiceBot_AI():
def load_bot_values(self):
current_bot_db = botdb.get_bot_value('botai') or None
if current_bot_db:
for predicate in current_bot_db.keys():
predval = current_bot_db[predicate]
self.aiml_kernel.setBotPredicate(predicate, predval)
# current_bot_db = botdb.get_bot_value('botai') or None
# if current_bot_db:
# for predicate in current_bot_db.keys():
# predval = current_bot_db[predicate]
# self.aiml_kernel.setBotPredicate(predicate, predval)
# sopel nick
self.aiml_kernel.setBotPredicate("nick", botconfig.nick)
@ -235,8 +235,8 @@ class SpiceBot_AI():
def save_brain(self):
self.aiml_kernel.saveBrain(botconfig.config.aibrain)
botsessiondata = self.aiml_kernel._botPredicates
botdb.set_bot_value('botai', botsessiondata)
# botsessiondata = self.aiml_kernel._botPredicates
# botdb.set_bot_value('botai', botsessiondata)
botai = SpiceBot_AI()