This commit is contained in:
deathbybandaid 2022-02-12 18:49:17 -05:00
parent e4c5549e5d
commit cefdeb9ccc
2 changed files with 1 additions and 5 deletions

View File

@ -69,6 +69,7 @@ class Commands():
return commands_list
def dispatch(self, bot, trigger, trigger_dict):
bot.say(str(trigger_dict))
if trigger_dict["trigger_type"] == "command":
if trigger_dict["trigger_type"] in self.valid_sopel_commands:
return self.dispatch_command(bot, trigger, trigger_dict)

View File

@ -80,17 +80,12 @@ def get_commands(bot, trigger):
elif command_type == "action_command":
commands_list = sb.commands.valid_sopel_action_commands
bot.say(command_type)
if trigger_command in commands_list:
found.append(command_type)
bot.say(str(found))
if len(found):
trigger_type = found[0]
bot.say(trigger_type)
commands.append({
"trigger_type": trigger_type,
"trigger_prefix": trigger_prefix,