mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 22:49:53 -05:00
test
This commit is contained in:
parent
72b84df5f3
commit
1691f95eba
@ -100,11 +100,23 @@ class SpiceBot_AI():
|
|||||||
filereadgood = False
|
filereadgood = False
|
||||||
# logs.log('SpiceBot_AI', "Error loading %s: %s (%s)" % ('aiml', e, aimlfile))
|
# logs.log('SpiceBot_AI', "Error loading %s: %s (%s)" % ('aiml', e, aimlfile))
|
||||||
|
|
||||||
if filereadgood and isinstance(dict_from_file, dict):
|
if filereadgood:
|
||||||
self.dict["counts"] += 1
|
self.dict["counts"] += 1
|
||||||
else:
|
else:
|
||||||
self.dict["failcounts"] += 1
|
self.dict["failcounts"] += 1
|
||||||
|
|
||||||
|
"""def donothing():
|
||||||
|
aiml_file_lines = []
|
||||||
|
aiml_file = open(aimlfile, 'r')
|
||||||
|
lines = aiml_file.readlines()
|
||||||
|
for line in lines:
|
||||||
|
aiml_file_lines.append(line)
|
||||||
|
aiml_file.close()
|
||||||
|
|
||||||
|
detected_lines = []
|
||||||
|
for line in aiml_file_lines:
|
||||||
|
dothing = True"""
|
||||||
|
|
||||||
def on_message(self, bot, trigger, message):
|
def on_message(self, bot, trigger, message):
|
||||||
nick = Identifier(trigger.nick)
|
nick = Identifier(trigger.nick)
|
||||||
nick_id = botdb.get_nick_id(nick, create=True)
|
nick_id = botdb.get_nick_id(nick, create=True)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user