Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.badwater.bot.main;
- import com.badwater.bot.core.*;
- import com.badwater.bot.helpers.JsonConfiguration.*;
- import com.google.gson.*;
- import org.pircbotx.exception.*;
- import java.io.*;
- import java.sql.*;
- /**
- * Created by Krystal on 8/3/14.
- */
- public class Main {
- //bot shit. stuff will be added here.
- private static BadwaterBot bot;
- public static void main(String args[]) throws SQLException, IOException, IrcException, ClassNotFoundException {
- Gson gson = new Gson();
- JsonConfig jsonConfig = new JsonConfig();
- File file = new File("./DB/Configs/JsonConfig");
- if (!file.exists()) {
- System.out.print("Error: No File!");
- }
- else {
- System.out.println("File Is There, Bitchface.");
- }
- jsonConfig = gson.fromJson(new FileReader("./DB/Configs/JsonConfig"), JsonConfig.class);
- System.out.print(jsonConfig.toString());
- System.out.print(jsonConfig.getName());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement