def arbitraryCommandHandler(msg): """Handle the arbitrary execution of commands, most new commands wil be executed through this handler. Passes the command into the command class - begins execution and does stuff""" c = Command(msg.Body[8:]) if c.isValid(): msg.Chat.SendMessage(c.execute()) return True else: return False