mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-11 06:00:59 -05:00
22 lines
509 B
Python
22 lines
509 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('prefix')
|
|
@sopel.module.commands('(.*)')
|
|
def command_dictcom(bot, trigger):
|
|
|
|
if trigger.sb['com'] not in list(SpiceBot.commands.dict['commands']["prefix"].keys()):
|
|
return
|
|
|
|
trigger.sb = SpiceBot.dictcoms.get_dict(trigger.sb)
|
|
bot.osd(str(trigger.sb))
|