startBot()
This commit is contained in:
parent
ca2ea80ed6
commit
b1061cd877
1 changed files with 5 additions and 3 deletions
|
|
@ -4,6 +4,7 @@ import com.bbn.hadder.commands.general.*;
|
|||
import com.bbn.hadder.commands.fun.GifCommand;
|
||||
import com.bbn.hadder.commands.misc.GitHubCommand;
|
||||
import com.bbn.hadder.commands.moderation.*;
|
||||
import com.bbn.hadder.commands.owner.RebootCommand;
|
||||
import com.bbn.hadder.commands.owner.ShutdownCommand;
|
||||
import com.bbn.hadder.commands.settings.PrefixCommand;
|
||||
import com.bbn.hadder.core.CommandHandler;
|
||||
|
|
@ -23,7 +24,10 @@ import java.util.List;
|
|||
public class Hadder {
|
||||
|
||||
public static void main(String[] args) {
|
||||
startBot();
|
||||
}
|
||||
|
||||
public static void startBot() {
|
||||
File configfile = new File("./config.json");
|
||||
if (!configfile.exists()) {
|
||||
System.err.println("No Config File Found!");
|
||||
|
|
@ -46,7 +50,7 @@ public class Hadder {
|
|||
builder.setToken(config.getString("Token"));
|
||||
|
||||
|
||||
CommandHandler.cmdlist.addAll(List.of(new TestCommand(), new BanCommand(), new PrefixCommand(), new ShutdownCommand(), new KickCommand(), new PingCommand(), new GifCommand(), new ClearCommand(), new GitHubCommand()));
|
||||
CommandHandler.cmdlist.addAll(List.of(new TestCommand(), new BanCommand(), new PrefixCommand(), new ShutdownCommand(), new KickCommand(), new PingCommand(), new GifCommand(), new ClearCommand(), new GitHubCommand(), new RebootCommand()));
|
||||
|
||||
builder.addEventListeners(
|
||||
new MentionListener(),
|
||||
|
|
@ -60,7 +64,5 @@ public class Hadder {
|
|||
} catch (LoginException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue