This commit is contained in:
Ocame
2019-02-07 06:15:08 +01:00
commit 6808f6ed2c
8 changed files with 455 additions and 0 deletions

View File

@ -0,0 +1,38 @@
package core;
import AtlasGruppe.groupchange;
import net.dv8tion.jda.core.JDA;
import net.dv8tion.jda.core.JDABuilder;
import net.dv8tion.jda.core.AccountType;
import net.dv8tion.jda.core.OnlineStatus;
import net.dv8tion.jda.core.entities.Game;
import javax.security.auth.login.LoginException;
public class Main {
public static void main(String[] args) {
// Insert your bot's token here
String token = "NDA1MDQ2NDg1OTk0OTYyOTQ2.DUessg.YFKvsTLIyPwprLlEOnZc0PXWJH0";
JDABuilder builder = new JDABuilder(AccountType.BOT);
builder.setToken(token);
builder.setAutoReconnect(true);
builder.setStatus(OnlineStatus.ONLINE);
builder.setGame(Game.watching("Den NinjaSäuen zu"));
builder.addEventListener(new groupchange());
try {
JDA jda = builder.build();
}
catch (LoginException e) {
e.printStackTrace();
}
}
}