public static Bot load() {
        Bot bot = null;

        String jsonString = "";

        try {
            DataInputStream dataInputStream = new DataInputStream(new FileInputStream("bot.dat"));
            try {
                jsonString = dataInputStream.readLine();
            } catch (IOException e) {
//                e.printStackTrace();
            }
        } catch (FileNotFoundException e) {
//            e.printStackTrace();
        }

        try {
            Gson gson = new Gson();
            bot = gson.fromJson(jsonString, Bot.class);
        } catch (Exception e) {
//            e.printStackTrace();
        }

        if(bot == null) {
            return new Bot();
        }

        return bot;
    }