mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
test without bot db
This commit is contained in:
parent
d33178d87c
commit
cb0b0dce45
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user