mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
int
This commit is contained in:
parent
897d0c964f
commit
e36d65898b
@ -102,7 +102,7 @@ class SpiceBot_AI():
|
|||||||
data = open(aimlfile).read()
|
data = open(aimlfile).read()
|
||||||
count = data.count('pattern')
|
count = data.count('pattern')
|
||||||
count = count / 2
|
count = count / 2
|
||||||
self.dict["patterncounts"] += count
|
self.dict["patterncounts"] += int(count)
|
||||||
|
|
||||||
tempbrain = tempfile.mkstemp()[1]
|
tempbrain = tempfile.mkstemp()[1]
|
||||||
with open(tempbrain, 'w') as fileo:
|
with open(tempbrain, 'w') as fileo:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user