test
This commit is contained in:
parent
e4c5549e5d
commit
cefdeb9ccc
@ -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)
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user