diff --git a/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py b/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py index 95b908f..f9404e2 100644 --- a/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py +++ b/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py @@ -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] diff --git a/sopel_SpiceBot_Core_Prerun/__init__.py b/sopel_SpiceBot_Core_Prerun/__init__.py index 63e696f..7bad179 100644 --- a/sopel_SpiceBot_Core_Prerun/__init__.py +++ b/sopel_SpiceBot_Core_Prerun/__init__.py @@ -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