This commit is contained in:
deathbybandaid 2019-06-20 13:45:30 -04:00
parent 7e19896b48
commit 79c07345d9
4 changed files with 30 additions and 1 deletions

View File

@ -40,7 +40,7 @@ class BotJSONCommands():
for dict_from_file in list(valid_dictcom_dict.keys()):
dict_from_file["comtype"] = "prefix_command"
dict_from_file["comtype"] = "prefix"
# default command to filename
if "validcoms" not in list(dict_from_file.keys()):

View File

@ -0,0 +1,8 @@
{
"?default": {
"type": "simple",
"responses": ["Bandaids? You mean bitch stickers??"],
},
}

View File

@ -0,0 +1,20 @@
# 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")

View File

@ -21,6 +21,7 @@ from .AI import *
from .Gif import *
from .Sherlock import *
from .Reddit import *
from .DictComs import *
__author__ = 'Sam Zick'
__email__ = 'sam@deathbybandaid.net'