Update ED und JDA
This commit is contained in:
@ -2,17 +2,11 @@ package core;
|
||||
|
||||
|
||||
//import Serenity.balance;
|
||||
import Shadowrun.dice;
|
||||
import Socket.shadowrun;
|
||||
import javafx.scene.effect.Shadow;
|
||||
import net.dv8tion.jda.api.JDA;
|
||||
import net.dv8tion.jda.api.JDABuilder;
|
||||
import net.dv8tion.jda.api.OnlineStatus;
|
||||
import net.dv8tion.jda.api.entities.*;
|
||||
|
||||
|
||||
|
||||
import javax.security.auth.login.LoginException;
|
||||
import net.dv8tion.jda.api.requests.GatewayIntent;
|
||||
|
||||
public class Main {
|
||||
|
||||
@ -22,9 +16,9 @@ public class Main {
|
||||
String token = "NTQ2ODk5MzYwMDEzODc3MjU4.D0u8wA.VfA2vJzundVhCl1-ibDiBaKuA8w";
|
||||
// iro
|
||||
//String token = "NTQ2NzEwODUwOTIxMjk5OTc5.D0sL6A.1fUd5iBr3eo2tbPXofEqyumDm6w";
|
||||
try {
|
||||
|
||||
JDA jda = JDABuilder.createDefault(token)
|
||||
.enableIntents(GatewayIntent.MESSAGE_CONTENT)
|
||||
.setActivity(Activity.playing("mit den Würfeln"))
|
||||
.setStatus(OnlineStatus.ONLINE)
|
||||
//.addEventListeners(new dice())
|
||||
@ -36,13 +30,13 @@ public class Main {
|
||||
.setAutoReconnect(true)
|
||||
.build();
|
||||
|
||||
Thread thread = new Thread(new shadowrun(jda));
|
||||
thread.start();
|
||||
//jda.upsertCommand("sr", "Calculate ping of the bot").queue();
|
||||
|
||||
// Thread thread = new Thread(new shadowrun(jda));
|
||||
//thread.start();
|
||||
|
||||
|
||||
|
||||
}
|
||||
catch (LoginException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user