Hinzufügen einer Config Datei
This commit is contained in:
11
src/main/java/core/Main.java
Normal file → Executable file
11
src/main/java/core/Main.java
Normal file → Executable file
@ -15,16 +15,21 @@ public class Main {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
Config conf = new Config();
|
||||
conf.readConfig();
|
||||
// Insert your bot's token here
|
||||
String token = "NDA1MDQ2NDg1OTk0OTYyOTQ2.DUessg.YFKvsTLIyPwprLlEOnZc0PXWJH0";
|
||||
//String token = "NTQ3MDc5NzgzNDE1MjgzNzEy.D0xjRw.ydeX_ou_pAqN_DCSwyGHzQUGBBk";
|
||||
String token = conf.token;
|
||||
|
||||
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());
|
||||
builder.setGame(Game.watching(conf.GameWatching));
|
||||
builder.addEventListener(new groupchange(conf));
|
||||
|
||||
try {
|
||||
JDA jda = builder.build();
|
||||
|
||||
Reference in New Issue
Block a user