Skip to content

Commit

Permalink
Project is compiling again
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaysoro committed Nov 16, 2024
1 parent ccf8752 commit 3a5a312
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/main/java/listeners/MessageListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -44,9 +43,6 @@ public Mono<MessageChannel> 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);
}
}
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/util/ClientConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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(){
Expand Down

0 comments on commit 3a5a312

Please sign in to comment.