Archiviert
1
0

Fix command logging, Discord ticket log

Signed-off-by: Lixfel <git-5w3l@lixfel.de>
Dieser Commit ist enthalten in:
Lixfel 2024-06-29 08:57:56 +02:00
Ursprung dbe27e92d2
Commit ff6fe9eeb5
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -103,7 +103,7 @@ public class DiscordTicketHandler extends ListenerAdapter {
})
.collect(Collectors.toCollection(LinkedList::new));
messages.add(new StringBuilder().append("<t:").append(Instant.now().getEpochSecond()).append("> **").append(event.getUser().getName()).append("**: Ticket closed"));
messages.addFirst(new StringBuilder().append("<t:").append(Instant.now().getEpochSecond()).append("> **").append(event.getUser().getName()).append("**: Ticket closed"));
LinkedList<StringBuilder> messageBuilders = new LinkedList<>();
messageBuilders.add(new StringBuilder());

Datei anzeigen

@ -50,7 +50,7 @@ import java.util.stream.Collectors;
public class ChatListener extends BasicListener {
private static final Logger rootLogger = Logger.getGlobal();
private static final Logger cmdLogger = Logger.getLogger("Command logger");
private static final List<String> rankedModes = ArenaMode.getAllModes().stream().filter(ArenaMode::isRanked).map(ArenaMode::getSchemType).toList();
@ -84,7 +84,7 @@ public class ChatListener extends BasicListener {
else
name = source.toString();
rootLogger.log(Level.INFO, "%s -> executed command /%s".formatted(name, command));
cmdLogger.log(Level.INFO, "%s -> executed command /%s".formatted(name, command));
}
}