This commit is contained in:
deathbybandaid 2019-06-04 14:22:30 -04:00
parent 7117ce0a49
commit 8563cb1198

View File

@ -27,7 +27,8 @@ class SpiceBot_AI():
self.dict = { self.dict = {
"counts": 0, "counts": 0,
"failcounts": 0, "failcounts": 0,
"sessioncache": {} "sessioncache": {},
"files": {}
} }
# Load AIML kernel # Load AIML kernel
self.aiml_kernel = aiml.Kernel() self.aiml_kernel = aiml.Kernel()
@ -104,6 +105,8 @@ class SpiceBot_AI():
if filereadgood: if filereadgood:
self.dict["counts"] += 1 self.dict["counts"] += 1
if aimlfile not in self.dict["files"]:
self.dict["files"][aimlfile] = dict_from_file
else: else:
self.dict["failcounts"] += 1 self.dict["failcounts"] += 1