This commit is contained in:
deathbybandaid 2022-02-12 12:09:47 -05:00
parent 1226d35ce2
commit 684a812772
2 changed files with 17 additions and 1 deletions

View File

@ -5,7 +5,7 @@ from sopel.trigger import PreTrigger
class Commands():
def __init__(self):
def __init__(self, config):
self.bot = None
@property

View File

@ -5,6 +5,20 @@ from sopel_SpiceBot_Core_1 import sb
from spicemanip import spicemanip
def get_commands(bot, trigger):
commands = []
bot.say(str(sb.config.prefix_list))
# bot.nick
# Get && split for multiple commands
if "&&" in trigger.args[1]:
triggers = trigger.args[1].split("&&")
else:
triggers = [trigger.args[1]]
return
def prerun_command():
def actual_decorator(function):
@ -14,6 +28,8 @@ def prerun_command():
trigger_command_type = str("command")
get_commands()
# Primary command used for trigger, and a list of all words
trigger_args, trigger_command, trigger_prefix = make_trigger_args(trigger.args[1], trigger_command_type)