SpiceBot-migrated/sopel_modules/SpiceBot_Core_Commands/DictComs.py
2019-06-20 13:45:30 -04:00

21 lines
464 B
Python

# coding=utf8
from __future__ import unicode_literals, absolute_import, division, print_function
"""
This is the SpiceBot DictCom system
"""
# sopel imports
import sopel.module
import sopel_modules.SpiceBot as SpiceBot
@SpiceBot.prerun.prerun('prefix')
@sopel.module.nickname_commands('(.*)')
def bot_command_dictcom(bot, trigger):
if trigger.sb['com'] not in list(SpiceBot.commands.dict['commands']["prefix"].keys()):
return
bot.say("here")