From 8aa59efd6de4312f635323601f992b2ad4b7a181 Mon Sep 17 00:00:00 2001 From: beanbeanjuice Date: Fri, 21 Jun 2024 03:53:19 -0400 Subject: [PATCH] Refactored the Bot Class --- src/main/java/com/beanbeanjuice/cafebot/Bot.java | 1 - .../com/beanbeanjuice/cafebot/command/generic/PingCommand.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/beanbeanjuice/cafebot/Bot.java b/src/main/java/com/beanbeanjuice/cafebot/Bot.java index 06fa341b..7c606e42 100644 --- a/src/main/java/com/beanbeanjuice/cafebot/Bot.java +++ b/src/main/java/com/beanbeanjuice/cafebot/Bot.java @@ -29,7 +29,6 @@ import net.dv8tion.jda.api.utils.ChunkingFilter; import net.dv8tion.jda.api.utils.MemberCachePolicy; import net.dv8tion.jda.api.utils.cache.CacheFlag; -import org.jetbrains.annotations.NotNull; import javax.security.auth.login.LoginException; diff --git a/src/main/java/com/beanbeanjuice/cafebot/command/generic/PingCommand.java b/src/main/java/com/beanbeanjuice/cafebot/command/generic/PingCommand.java index e3984f59..cc1014d8 100644 --- a/src/main/java/com/beanbeanjuice/cafebot/command/generic/PingCommand.java +++ b/src/main/java/com/beanbeanjuice/cafebot/command/generic/PingCommand.java @@ -38,7 +38,7 @@ public void handle(@NotNull SlashCommandInteractionEvent event) { switch (string) { case "ai" -> { - Bot.getAIResponseListener().refreshMaps(); + Bot.getAiResponseListener().refreshMaps(); event.getHook().sendMessageEmbeds(Helper.successEmbed( "AI Responses Refreshed", "The AI responses have been successfully refreshed!"