This commit is contained in:
deathbybandaid 2022-02-24 15:12:12 -05:00
parent c25d6a32da
commit cffd77525d
2 changed files with 12 additions and 3 deletions

View File

@ -164,6 +164,15 @@ class Commands():
command_aliases = function.action_commands
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):
commands = []
first_full_trigger_str = trigger.args[1]

View File

@ -49,7 +49,7 @@ def prerun():
return
# At this point, we update the re.match for trigger
trigger = rebuild_trigger(comrun, trigger)
comrun.trigger = rebuild_trigger(comrun, trigger)
# Run function
function(bot, trigger, comrun, *args, **kwargs)
@ -62,7 +62,7 @@ def prerun():
def rebuild_trigger(comrun, trigger):
print(trigger.match)
print(dir(trigger.match))
return trigger
@ -158,4 +158,4 @@ class ComRun():
@property
def re_match(self):
return
return self.trigger.match