Mine
public text v1 · immutable def command(self):
CommandRegex = re.compile("!(.*?) ")
ArgumentRegex = re.compile("(.*?) ")
try:
command = re.search(CommandRegex,self.message()).group()
message = self.message()[len(command):]
argument1 = re.search(ArgumentRegex,message)
argument2 = message[len(argument1):]
output = [command,argument1,argument2]
return output
except:
return False