This commit is contained in:
deathbybandaid 2019-06-01 13:51:24 -04:00
parent 3eaa2ad207
commit 659395b3eb
3 changed files with 4 additions and 4 deletions

View File

@ -58,8 +58,8 @@ class SpiceBot_AI():
def learn(self, braindirs):
for braindir in braindirs:
dirnumber = max(self.load_commands) + 1
for parsefile in os.listdir(braindir):
self.check_file_parse(parsefile)
# for parsefile in os.listdir(braindir):
# self.check_file_parse(parsefile)
tempbrain = tempfile.mkstemp()[1]
with open(tempbrain, 'w') as fileo:
fileo.write(

View File

@ -10,7 +10,7 @@ import sopel_modules.SpiceBot as SpiceBot
@sopel.module.event(SpiceBot.events.BOT_READY)
@sopel.module.rule('.*')
def bot_events_complete(bot, trigger):
def bot_events_complete_ai(bot, trigger):
if SpiceBot.botai.dict["counts"]:
SpiceBot.logs.log('SpiceBot_AI', 'Registered %d %s files,' % (SpiceBot.botai.dict["counts"], 'aiml'))

View File

@ -10,7 +10,7 @@ import sopel_modules.SpiceBot as SpiceBot
@sopel.module.event(SpiceBot.events.BOT_READY)
@sopel.module.rule('.*')
def bot_events_complete(bot, trigger):
def bot_events_complete_modules(bot, trigger):
for comtype in SpiceBot.commands.dict['commands'].keys():
if comtype not in ['module', 'nickname', 'rule']: