mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 22:49:53 -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):
|
def load_bot_values(self):
|
||||||
|
|
||||||
current_bot_db = botdb.get_bot_value('botai') or None
|
# current_bot_db = botdb.get_bot_value('botai') or None
|
||||||
if current_bot_db:
|
# if current_bot_db:
|
||||||
for predicate in current_bot_db.keys():
|
# for predicate in current_bot_db.keys():
|
||||||
predval = current_bot_db[predicate]
|
# predval = current_bot_db[predicate]
|
||||||
self.aiml_kernel.setBotPredicate(predicate, predval)
|
# self.aiml_kernel.setBotPredicate(predicate, predval)
|
||||||
|
|
||||||
# sopel nick
|
# sopel nick
|
||||||
self.aiml_kernel.setBotPredicate("nick", botconfig.nick)
|
self.aiml_kernel.setBotPredicate("nick", botconfig.nick)
|
||||||
@ -235,8 +235,8 @@ class SpiceBot_AI():
|
|||||||
|
|
||||||
def save_brain(self):
|
def save_brain(self):
|
||||||
self.aiml_kernel.saveBrain(botconfig.config.aibrain)
|
self.aiml_kernel.saveBrain(botconfig.config.aibrain)
|
||||||
botsessiondata = self.aiml_kernel._botPredicates
|
# botsessiondata = self.aiml_kernel._botPredicates
|
||||||
botdb.set_bot_value('botai', botsessiondata)
|
# botdb.set_bot_value('botai', botsessiondata)
|
||||||
|
|
||||||
|
|
||||||
botai = SpiceBot_AI()
|
botai = SpiceBot_AI()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user