All pastes #289658 Raw Edit

Mine

public text v1 · immutable
#289658 ·published 2006-12-23 09:53 UTC
rendered paste body
    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