mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
20 lines
698 B
Python
20 lines
698 B
Python
# coding=utf8
|
|
from __future__ import unicode_literals, absolute_import, division, print_function
|
|
"""
|
|
This is the SpiceBot Modules system.
|
|
"""
|
|
import sopel
|
|
|
|
import sopel_modules.SpiceBot as SpiceBot
|
|
|
|
|
|
@sopel.module.event(SpiceBot.events.BOT_READY)
|
|
@sopel.module.rule('.*')
|
|
def bot_events_complete_modules(bot, trigger):
|
|
|
|
for comtype in list(SpiceBot.commands.dict['commands'].keys()):
|
|
if comtype not in ['module', 'nickname', 'rule']:
|
|
SpiceBot.logs.log('SpiceBot_Commands', "Found " + str(len(list(SpiceBot.commands.dict['commands'][comtype].keys()))) + " " + comtype + " commands.", True)
|
|
|
|
SpiceBot.events.trigger(bot, SpiceBot.events.BOT_COMMANDS, "SpiceBot_Commands")
|