Update ED und JDA

This commit is contained in:
Ocame
2023-02-16 02:30:38 +01:00
parent 06cd082ee2
commit 4a999d9841
16 changed files with 1051 additions and 256 deletions

View File

@ -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();
}
}
}