mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 15:09:54 -05:00
test
This commit is contained in:
parent
7117ce0a49
commit
8563cb1198
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user