include developer.file_access; include library.utils; include java.io.InputStream; include library.chat; include java.util.Date; // todo: make this a command handler trigger OnSpeaking(string text) { if(! isGod(self)) return SCRIPT_CONTINUE; if(! text.startsWith("editScript")) return SCRIPT_CONTINUE; java.util.StringTokenizer st = new java.util.StringTokenizer(text); st.nextToken(); String params = st.nextToken(); // validate the parameter string, it should be the name of a script to edit if(params == null) { sendSystemMessageTestingOnly(self, "Usage: /editScript