test
This commit is contained in:
parent
c25d6a32da
commit
cffd77525d
@ -164,6 +164,15 @@ class Commands():
|
|||||||
command_aliases = function.action_commands
|
command_aliases = function.action_commands
|
||||||
return command_aliases
|
return command_aliases
|
||||||
|
|
||||||
|
def get_command_match(self, function, trigger):
|
||||||
|
command_type = self.what_command_type(trigger)
|
||||||
|
command_aliases = self.get_command_aliases(function, command_type)
|
||||||
|
command_match = None
|
||||||
|
print((dir))
|
||||||
|
# for command in command_aliases:
|
||||||
|
# True
|
||||||
|
return None
|
||||||
|
|
||||||
def get_commands_nosplit(self, trigger):
|
def get_commands_nosplit(self, trigger):
|
||||||
commands = []
|
commands = []
|
||||||
first_full_trigger_str = trigger.args[1]
|
first_full_trigger_str = trigger.args[1]
|
||||||
|
|||||||
@ -49,7 +49,7 @@ def prerun():
|
|||||||
return
|
return
|
||||||
|
|
||||||
# At this point, we update the re.match for trigger
|
# At this point, we update the re.match for trigger
|
||||||
trigger = rebuild_trigger(comrun, trigger)
|
comrun.trigger = rebuild_trigger(comrun, trigger)
|
||||||
|
|
||||||
# Run function
|
# Run function
|
||||||
function(bot, trigger, comrun, *args, **kwargs)
|
function(bot, trigger, comrun, *args, **kwargs)
|
||||||
@ -62,7 +62,7 @@ def prerun():
|
|||||||
|
|
||||||
|
|
||||||
def rebuild_trigger(comrun, trigger):
|
def rebuild_trigger(comrun, trigger):
|
||||||
print(trigger.match)
|
print(dir(trigger.match))
|
||||||
return trigger
|
return trigger
|
||||||
|
|
||||||
|
|
||||||
@ -158,4 +158,4 @@ class ComRun():
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def re_match(self):
|
def re_match(self):
|
||||||
return
|
return self.trigger.match
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user