aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/soundchan/Main.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/soundchan/Main.java')
-rw-r--r--src/main/java/soundchan/Main.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/main/java/soundchan/Main.java b/src/main/java/soundchan/Main.java
index a7aa6a3..587c7e9 100644
--- a/src/main/java/soundchan/Main.java
+++ b/src/main/java/soundchan/Main.java
@@ -1,8 +1,8 @@
package soundchan;
-import net.dv8tion.jda.core.AccountType;
-import net.dv8tion.jda.core.JDA;
-import net.dv8tion.jda.core.JDABuilder;
+import net.dv8tion.jda.api.AccountType;
+import net.dv8tion.jda.api.JDA;
+import net.dv8tion.jda.api.JDABuilder;
import soundchan.BotListener.*;
import java.io.FileInputStream;
@@ -17,10 +17,9 @@ public class Main {
JDA jda = new JDABuilder(AccountType.BOT)
.setToken(properties.getProperty("botToken"))
- .buildBlocking();
-
-
- jda.addEventListener(new BotListener(properties));
+ .addEventListeners(new BotListener(properties))
+ .build();
+ jda.awaitReady();
}
private static Properties LoadProperties(){