mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-11 22:20:58 -05:00
test
This commit is contained in:
parent
7e19896b48
commit
79c07345d9
@ -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()):
|
||||
|
||||
8
sopel_modules/SpiceBot_Configs/SpiceBot_DictComs/bandaid
Normal file
8
sopel_modules/SpiceBot_Configs/SpiceBot_DictComs/bandaid
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
|
||||
"?default": {
|
||||
"type": "simple",
|
||||
"responses": ["Bandaids? You mean bitch stickers??"],
|
||||
},
|
||||
|
||||
}
|
||||
20
sopel_modules/SpiceBot_Core_Commands/DictComs.py
Normal file
20
sopel_modules/SpiceBot_Core_Commands/DictComs.py
Normal 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")
|
||||
@ -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'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user