mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-06 08:39:06 +00:00
Compile + small discord bot touchup (#38)
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user