forked from MagicBane/Server
Starting work on output of admin log.
This commit is contained in:
@@ -28,10 +28,7 @@ import org.pmw.tinylog.writers.RollingFileWriter;
|
|||||||
|
|
||||||
import javax.security.auth.login.LoginException;
|
import javax.security.auth.login.LoginException;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.util.Arrays;
|
import java.util.*;
|
||||||
import java.util.EnumSet;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Random;
|
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -96,8 +93,8 @@ public class MagicBot extends ListenerAdapter {
|
|||||||
database = new Database();
|
database = new Database();
|
||||||
database.configureDatabase();
|
database.configureDatabase();
|
||||||
|
|
||||||
// Use authentication token issued to MagicBot application to
|
// Authentication token issued to MagicBot application to connect
|
||||||
// connect to Discord. Bot is pre-invited to the Magicbane server.
|
// to Discord is stored in config. Bot is pre-invited to the Magicbane server.
|
||||||
|
|
||||||
// Configure and create JDA discord instance
|
// Configure and create JDA discord instance
|
||||||
|
|
||||||
@@ -121,6 +118,13 @@ public class MagicBot extends ListenerAdapter {
|
|||||||
ChatChannel.Init();
|
ChatChannel.Init();
|
||||||
|
|
||||||
Logger.info("***MAGICBOT IS RUNNING***");
|
Logger.info("***MAGICBOT IS RUNNING***");
|
||||||
|
|
||||||
|
HashMap<Integer, String> adminEvents = database.getAdminEvents();
|
||||||
|
|
||||||
|
for (String adminEvent : adminEvents.values()) {
|
||||||
|
Logger.info(adminEvent);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user