aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/soundchan/Main.java
diff options
context:
space:
mode:
authorMatt Kohls <mattkohls13@gmail.com>2019-10-27 00:38:52 -0400
committerMatt Kohls <mattkohls13@gmail.com>2019-10-27 00:38:52 -0400
commitc50216132981a993fb827315c7c4d6fb3d5857a1 (patch)
tree2e10a70799009c3a6fe9f245e644b7c9f4a68de8 /src/main/java/soundchan/Main.java
parentd2bb59cf2c21c5ba3000d1523bb62bb969eb38d4 (diff)
downloadSoundChan-c50216132981a993fb827315c7c4d6fb3d5857a1.tar.gz
SoundChan-c50216132981a993fb827315c7c4d6fb3d5857a1.tar.bz2
SoundChan-c50216132981a993fb827315c7c4d6fb3d5857a1.zip
Starting work to update libraries
JDA v4 has many breaking changes that will need to be checked Lavaplayer shouldn't have any major changes, but needs version bump to continue working with various sites
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(){