update
This commit is contained in:
@ -1,13 +1,15 @@
|
|||||||
package core;
|
package core;
|
||||||
|
|
||||||
|
|
||||||
import Serenity.balance;
|
//import Serenity.balance;
|
||||||
import Shadowrun.dice;
|
import Shadowrun.dice;
|
||||||
import net.dv8tion.jda.core.JDA;
|
import Socket.shadowrun;
|
||||||
import net.dv8tion.jda.core.JDABuilder;
|
import javafx.scene.effect.Shadow;
|
||||||
import net.dv8tion.jda.core.AccountType;
|
import net.dv8tion.jda.api.JDA;
|
||||||
import net.dv8tion.jda.core.OnlineStatus;
|
import net.dv8tion.jda.api.JDABuilder;
|
||||||
import net.dv8tion.jda.core.entities.Game;
|
import net.dv8tion.jda.api.OnlineStatus;
|
||||||
|
import net.dv8tion.jda.api.entities.*;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import javax.security.auth.login.LoginException;
|
import javax.security.auth.login.LoginException;
|
||||||
@ -17,22 +19,24 @@ public class Main {
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
||||||
// Insert your bot's token here
|
// Insert your bot's token here
|
||||||
//String token = "NTQ2ODk5MzYwMDEzODc3MjU4.D0u8wA.VfA2vJzundVhCl1-ibDiBaKuA8w";
|
String token = "NTQ2ODk5MzYwMDEzODc3MjU4.D0u8wA.VfA2vJzundVhCl1-ibDiBaKuA8w";
|
||||||
// iro
|
// iro
|
||||||
String token = "NTQ2NzEwODUwOTIxMjk5OTc5.D0sL6A.1fUd5iBr3eo2tbPXofEqyumDm6w";
|
//String token = "NTQ2NzEwODUwOTIxMjk5OTc5.D0sL6A.1fUd5iBr3eo2tbPXofEqyumDm6w";
|
||||||
|
|
||||||
JDABuilder builder = new JDABuilder(AccountType.BOT);
|
|
||||||
|
|
||||||
builder.setToken(token);
|
|
||||||
builder.setAutoReconnect(true);
|
|
||||||
builder.setStatus(OnlineStatus.ONLINE);
|
|
||||||
builder.setGame(Game.playing("mit den Würfeln"));
|
|
||||||
builder.addEventListener(new balance());
|
|
||||||
builder.addEventListener(new dice() );
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
JDA jda = builder.build();
|
|
||||||
Thread thread = new Thread(new Socket.shadowrun(jda));
|
JDA jda = JDABuilder.createDefault(token)
|
||||||
|
.setActivity(Activity.playing("mit den Würfeln"))
|
||||||
|
.setStatus(OnlineStatus.ONLINE)
|
||||||
|
//.addEventListeners(new dice())
|
||||||
|
.addEventListeners(new Earthdawn.dice())
|
||||||
|
.addEventListeners(new Simpleroll.dice())
|
||||||
|
.addEventListeners(new Shadowrun.dice())
|
||||||
|
.addEventListeners(new Engel.dice())
|
||||||
|
.addEventListeners(new Keeproll.dice())
|
||||||
|
.setAutoReconnect(true)
|
||||||
|
.build();
|
||||||
|
|
||||||
|
Thread thread = new Thread(new shadowrun(jda));
|
||||||
thread.start();
|
thread.start();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user