Compile + small discord bot touchup (#38)

This commit is contained in:
Daniel Ginovker
2019-10-08 14:32:45 -04:00
committed by GitHub
parent 7b9e2f7163
commit a3b8e773d4
490 changed files with 13 additions and 8 deletions
@@ -23,7 +23,7 @@ public class JavaCord {
public static void init() throws IOException {
loadSettings();
if (!token.equals("")) {
if (token != null && !token.equals("")) { //If the token was loaded by loadSettings:
new DiscordApiBuilder().setToken(token).login().thenAccept(api -> {
JavaCord.api = api;
//System.out.println("You can invite the bot by using the following url: " + api.createBotInvite());