mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-11 22:20:58 -05:00
test
This commit is contained in:
parent
3eaa2ad207
commit
659395b3eb
@ -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(
|
||||
|
||||
@ -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'))
|
||||
|
||||
@ -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']:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user