public static void writeChat(String args) {
        subsubdirectory = subdirectory + File.separator + OKmain.getDate();
        new File(subsubdirectory).mkdir();
        File file = new File(subsubdirectory + File.separator + OKmain.chatlogname + ".txt");
        if (!file.exists()) {
            try {
                file.createNewFile();
            } catch (Exception ex) {
                ex.printStackTrace();
            }
        }
        try {
            FileWriter fstream = new FileWriter(file, true);
            BufferedWriter out = new BufferedWriter(fstream);
            out.write(OKmain.getDateTime() + " | " + args);
            out.newLine();
            out.close();
        } catch (Exception localException1) {
        }
    }