This commit is contained in:
deathbybandaid 2022-02-24 09:15:16 -05:00
parent 28da5aa296
commit 6d70ec5e1a

View File

@ -12,16 +12,15 @@ def prerun(rulematch=False):
def internal_prerun(bot, trigger, *args, **kwargs):
# trigger_type = [x for x in dir(function) if not x.startswith("__")][1]
try:
if hasattr(function, 'commands'):
print("commands")
print(function.commands)
except AttributeError:
try:
if hasattr(function, 'nickname_commands'):
print("nickname_commands")
print(function.nickname_commands)
except AttributeError:
try:
if hasattr(function, 'action_commands'):
print("action_commands")
print(function.action_commands)
except AttributeError:
print("nothing here")
# Get list of trigger command(s) by && split
commands = sb.commands.get_commands_split(trigger, "&&")