test
This commit is contained in:
parent
4bac5d38c4
commit
4ae835f4cc
@ -69,15 +69,14 @@ class Commands():
|
|||||||
return commands_list
|
return commands_list
|
||||||
|
|
||||||
def dispatch(self, bot, trigger, trigger_dict):
|
def dispatch(self, bot, trigger, trigger_dict):
|
||||||
bot.say(str(trigger_dict))
|
|
||||||
if trigger_dict["trigger_type"] == "command":
|
if trigger_dict["trigger_type"] == "command":
|
||||||
if trigger_dict["trigger_type"] in self.valid_sopel_commands:
|
if trigger_dict["trigger_command"] in self.valid_sopel_commands:
|
||||||
return self.dispatch_command(bot, trigger, trigger_dict)
|
return self.dispatch_command(bot, trigger, trigger_dict)
|
||||||
elif trigger_dict["trigger_type"] == "nickname_command":
|
elif trigger_dict["trigger_type"] == "nickname_command":
|
||||||
if trigger_dict["trigger_type"] in self.valid_sopel_nickname_commands:
|
if trigger_dict["trigger_command"] in self.valid_sopel_nickname_commands:
|
||||||
return self.dispatch_nickname_command(bot, trigger, trigger_dict)
|
return self.dispatch_nickname_command(bot, trigger, trigger_dict)
|
||||||
elif trigger_dict["trigger_type"] == "action_command":
|
elif trigger_dict["trigger_type"] == "action_command":
|
||||||
if trigger_dict["trigger_type"] in self.valid_sopel_action_commands:
|
if trigger_dict["trigger_command"] in self.valid_sopel_action_commands:
|
||||||
return self.dispatch_action_command(bot, trigger, trigger_dict)
|
return self.dispatch_action_command(bot, trigger, trigger_dict)
|
||||||
|
|
||||||
def dispatch_command(self, bot, trigger, trigger_dict):
|
def dispatch_command(self, bot, trigger, trigger_dict):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user