All pastes #289659 Raw Edit

Mine

public python v1 · immutable
#289659 ·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