From b6506ac3f12f1a9578dfb3e4f1c57d3a7d9b177b Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 16 Jan 2023 05:41:31 -0500 Subject: [PATCH] Starting work on output of admin log. --- src/discord/MagicBot.java | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/discord/MagicBot.java b/src/discord/MagicBot.java index 9bf6b233..ce487473 100644 --- a/src/discord/MagicBot.java +++ b/src/discord/MagicBot.java @@ -28,10 +28,7 @@ import org.pmw.tinylog.writers.RollingFileWriter; import javax.security.auth.login.LoginException; import java.io.*; -import java.util.Arrays; -import java.util.EnumSet; -import java.util.List; -import java.util.Random; +import java.util.*; import java.util.regex.Pattern; /* @@ -96,8 +93,8 @@ public class MagicBot extends ListenerAdapter { database = new Database(); database.configureDatabase(); - // Use authentication token issued to MagicBot application to - // connect to Discord. Bot is pre-invited to the Magicbane server. + // Authentication token issued to MagicBot application to connect + // to Discord is stored in config. Bot is pre-invited to the Magicbane server. // Configure and create JDA discord instance @@ -121,6 +118,13 @@ public class MagicBot extends ListenerAdapter { ChatChannel.Init(); Logger.info("***MAGICBOT IS RUNNING***"); + + HashMap adminEvents = database.getAdminEvents(); + + for (String adminEvent : adminEvents.values()) { + Logger.info(adminEvent); + } + } @Override