Update Keeprool, Engel + Aufräumen

This commit is contained in:
Ocame
2025-07-24 08:21:44 +02:00
parent cb221e6bb2
commit 327cd764a4
25 changed files with 601 additions and 2457 deletions

View File

@ -2,6 +2,7 @@ package de.ocame.wuerfelbot.Simpleroll;
import de.ocame.wuerfelbot.commands.ICommand;
import de.ocame.wuerfelbot.core.LoggerUtil;
import de.ocame.wuerfelbot.output.DiceOutputFormatter;
import net.dv8tion.jda.api.EmbedBuilder;
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;
@ -80,8 +81,7 @@ public class SimplerollCommand implements ICommand {
} catch (IllegalArgumentException e) {
event.getChannel().sendMessage(outputFormatter.formatError(e.getMessage())).queue();
} catch (Exception e) {
System.err.println("Fehler beim Ausführen von Text-Befehl roll/r: " + e.getMessage());
e.printStackTrace();
LoggerUtil.log("error", "SimbelRollCommand", "Fehler beim Ausführen von Text-Befehl roll/r: " + e.getMessage());
event.getChannel().sendMessage(outputFormatter.formatError("Ein unerwarteter Fehler ist beim Würfeln aufgetreten.")).queue();
}
}