package com.robothand.highqualitybot;

import net.dv8tion.jda.core.AccountType;
import net.dv8tion.jda.core.JDA;
import net.dv8tion.jda.core.JDABuilder;

/**
 * main class
 */
public class Bot {
    static JDA api;
    static boolean running;

    public static void main(String[] args) {
        System.out.println("Connecting to Discord...");
        try {
            api = new JDABuilder(AccountType.BOT).setToken("MjY4MjExODI2MzU1ODYzNTUz.DByjTQ.1ycw5crEGVZGo-ckyGakydsno0o").buildAsync();
        } catch (Exception e) {
            System.err.println("FATAL: Could not connect to Discord");
            System.exit(1);
        }

        api.addEventListener(new TestCommand());
    }

    public static void shutdown() {
        api.shutdown();
    }

}

@@ -147,16 +147,102 @@
 ilder;%0A%0A
+import java.io.File;%0Aimport java.io.FileNotFoundException;%0Aimport java.util.Scanner;%0A%0A
 /**%0A * m
@@ -364,24 +364,473 @@
 g%5B%5D args) %7B%0A
+        File config;%0A        String token;%0A%0A        System.out.println(%22Attempting to read %5C%22config.txt%5C%22%22);%0A        config = new File(%22config.txt%22);%0A        token = null;%0A%0A        try %7B%0A            Scanner s = new Scanner(config);%0A%0A            // token%0A            token = s.nextLine();%0A%0A        %7D catch (FileNotFoundException e) %7B%0A            System.err.println(%22FATAL: could not find file %5C%22config.txt%5C%22%22);%0A            System.exit(1);%0A        %7D%0A%0A
         Syst
@@ -950,69 +950,13 @@
 ken(
-%22MjY4MjExODI2MzU1ODYzNTUz.DByjTQ.1ycw5crEGVZGo-ckyGakydsno0o%22
+token
 ).bu

remove API key from source code, because that's just poor form (old one is invalid, by the way)