|
|
@ -380,14 +380,20 @@ public class MagicBot extends ListenerAdapter { |
|
|
|
private static void SendAdminLogUpdates() { |
|
|
|
private static void SendAdminLogUpdates() { |
|
|
|
HashMap<Integer, String> adminEvents = database.getAdminEvents(); |
|
|
|
HashMap<Integer, String> adminEvents = database.getAdminEvents(); |
|
|
|
|
|
|
|
|
|
|
|
for (String adminEvent : adminEvents.values()) { |
|
|
|
for (int adminEvent : adminEvents.keySet()) { |
|
|
|
String outString = |
|
|
|
|
|
|
|
|
|
|
|
// Set event as read
|
|
|
|
|
|
|
|
database.setAdminEventAsRead(adminEvent); |
|
|
|
|
|
|
|
/* String outString = |
|
|
|
"```\n" + "Hello Players \n\n" + |
|
|
|
"```\n" + "Hello Players \n\n" + |
|
|
|
adminEvent + "\n\n" + |
|
|
|
adminEvents.get(adminEvent) + "\n\n" + |
|
|
|
RobotSpeak.getRobotSpeak() + "\n```"; |
|
|
|
RobotSpeak.getRobotSpeak() + "\n```"; |
|
|
|
|
|
|
|
|
|
|
|
if (ADMINLOG.textChannel.canTalk()) |
|
|
|
if (ADMINLOG.textChannel.canTalk()) |
|
|
|
ADMINLOG.textChannel.sendMessage(outString).queue(); |
|
|
|
ADMINLOG.textChannel.sendMessage(outString).queue(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
Logger.info(adminEvents.get(adminEvent)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|