summaryrefslogtreecommitdiff
path: root/src/main/java/de/romjaki/privateroombot/Main.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de/romjaki/privateroombot/Main.java')
-rw-r--r--src/main/java/de/romjaki/privateroombot/Main.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/main/java/de/romjaki/privateroombot/Main.java b/src/main/java/de/romjaki/privateroombot/Main.java
new file mode 100644
index 0000000..353fae3
--- /dev/null
+++ b/src/main/java/de/romjaki/privateroombot/Main.java
@@ -0,0 +1,25 @@
+package de.romjaki.privateroombot;
+
+import com.google.gson.Gson;
+import com.google.gson.GsonBuilder;
+import net.dv8tion.jda.core.AccountType;
+import net.dv8tion.jda.core.JDA;
+import net.dv8tion.jda.core.JDABuilder;
+
+import javax.security.auth.login.LoginException;
+
+import static de.romjaki.privateroombot.Config.CONFIG;
+
+public class Main {
+
+ public static Gson gson = new GsonBuilder()
+ .create();
+
+ public static JDA jda;
+ public static void main(String[] args) throws LoginException {
+ jda = new JDABuilder(AccountType.BOT)
+ .setToken(CONFIG.token)
+ .addEventListener(new VoiceChannelJoinListener())
+ .buildAsync();
+ }
+}