This commit is contained in:
deathbybandaid 2022-02-23 13:52:17 -05:00
parent 56abecef95
commit 2bea9b2507

View File

@ -105,7 +105,9 @@ class Commands():
def get_command_from_trigger(self, trigger): def get_command_from_trigger(self, trigger):
commstring = trigger.args[1] commstring = trigger.args[1]
print(commstring)
if commstring.startswith(tuple(self.config.prefix_list)): if commstring.startswith(tuple(self.config.prefix_list)):
print(commstring[:1])
command = commstring[1:].split(" ")[0] command = commstring[1:].split(" ")[0]
elif commstring.startswith(self.bot.nick): elif commstring.startswith(self.bot.nick):
command = " ".join(commstring.split(" ")[1:]).split(" ")[0] command = " ".join(commstring.split(" ")[1:]).split(" ")[0]