From 3a5a3127af29ce450b3d792f7989e93daeebc6df Mon Sep 17 00:00:00 2001 From: Steven Pescheteau Date: Sat, 16 Nov 2024 04:34:22 +0100 Subject: [PATCH] Project is compiling again --- src/main/java/listeners/MessageListener.java | 4 ---- src/main/java/util/ClientConfig.java | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/main/java/listeners/MessageListener.java b/src/main/java/listeners/MessageListener.java index 215ca52..e04b1f8 100644 --- a/src/main/java/listeners/MessageListener.java +++ b/src/main/java/listeners/MessageListener.java @@ -7,7 +7,6 @@ import discord4j.core.object.entity.User; import discord4j.core.object.entity.channel.MessageChannel; import enums.Language; -import exceptions.BasicDiscordException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import reactor.core.publisher.Mono; @@ -44,9 +43,6 @@ public Mono onReady(MessageCreateEvent event) { try { command.request(event, event.getMessage()); } catch (Exception e) { - BasicDiscordException.UNKNOWN_ERROR.throwException(event.getMessage(), command, lg); - Reporter.report(e, null, channel, event.getMessage().getAuthor() - .orElse(null), event.getMessage()); LOG.error("onReady", e); } } diff --git a/src/main/java/util/ClientConfig.java b/src/main/java/util/ClientConfig.java index 19397ce..88a0e6e 100644 --- a/src/main/java/util/ClientConfig.java +++ b/src/main/java/util/ClientConfig.java @@ -9,7 +9,6 @@ import discord4j.core.shard.MemberRequestFilter; import discord4j.gateway.intent.Intent; import discord4j.gateway.intent.IntentSet; -import io.sentry.Sentry; import listeners.MessageListener; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -56,9 +55,6 @@ private ClientConfig(String path){ LOG.error("Impossible to connect to Discord: check your token in " + FILENAME + " as well as your connection."); } - - if (! prop.get("sentry.dsn").equals("")) - Sentry.init(prop.getProperty("sentry.dsn")); } public static synchronized ClientConfig getInstance(){