initial
This commit is contained in:
38
src/main/java/core/Main.java
Normal file
38
src/main/java/core/Main.java
Normal 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();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user