mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-11 06:00:59 -05:00
better botdb
This commit is contained in:
parent
29b94bffa9
commit
2c11473946
@ -74,6 +74,12 @@ 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)
|
||||
|
||||
# sopel nick
|
||||
self.aiml_kernel.setBotPredicate("nick", botconfig.nick)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user