blob: 353fae3de38ba240b3ddb5697d7b8bb838969ee8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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();
}
}
|