From 287343b5d3d3587f34e0bd572fc21e642c134f2a Mon Sep 17 00:00:00 2001 From: floppydiskette Date: Sun, 17 Nov 2024 18:55:16 +0000 Subject: [PATCH] Disable help command and remove unnecessary imports --- src/main/java/net/hypr/doki/Doki.java | 2 +- src/main/java/net/hypr/doki/commands/utils/Ping.java | 2 -- src/main/java/net/hypr/doki/commands/utils/WhoIs.java | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/net/hypr/doki/Doki.java b/src/main/java/net/hypr/doki/Doki.java index c2095f5..51971f1 100644 --- a/src/main/java/net/hypr/doki/Doki.java +++ b/src/main/java/net/hypr/doki/Doki.java @@ -49,7 +49,7 @@ public class Doki { start(); jda = getJDA(); CommandsBuilder.newBuilder(437970062922612737L) - .textCommandBuilder(textCommandsBuilder -> textCommandsBuilder.addPrefix(getPrefix())) + .textCommandBuilder(textCommandsBuilder -> textCommandsBuilder.disableHelpCommand(true)) .build(jda, "net.hypr.doki.commands"); //Registering listeners is taken care of by the lib } catch (Exception e) { log.error("Failed to start the bot", e); diff --git a/src/main/java/net/hypr/doki/commands/utils/Ping.java b/src/main/java/net/hypr/doki/commands/utils/Ping.java index e8f1bec..557fba7 100644 --- a/src/main/java/net/hypr/doki/commands/utils/Ping.java +++ b/src/main/java/net/hypr/doki/commands/utils/Ping.java @@ -2,8 +2,6 @@ package net.hypr.doki.commands.utils; import com.freya02.botcommands.api.annotations.CommandMarker; import com.freya02.botcommands.api.application.ApplicationCommand; -import com.freya02.botcommands.api.application.CommandScope; -import com.freya02.botcommands.api.application.slash.GlobalSlashEvent; import com.freya02.botcommands.api.application.slash.GuildSlashEvent; import com.freya02.botcommands.api.application.slash.annotations.JDASlashCommand; import com.freya02.botcommands.api.prefixed.annotations.Category; diff --git a/src/main/java/net/hypr/doki/commands/utils/WhoIs.java b/src/main/java/net/hypr/doki/commands/utils/WhoIs.java index cc7a403..cf0101c 100644 --- a/src/main/java/net/hypr/doki/commands/utils/WhoIs.java +++ b/src/main/java/net/hypr/doki/commands/utils/WhoIs.java @@ -3,7 +3,6 @@ package net.hypr.doki.commands.utils; import com.freya02.botcommands.api.annotations.CommandMarker; import com.freya02.botcommands.api.annotations.Optional; import com.freya02.botcommands.api.application.ApplicationCommand; -import com.freya02.botcommands.api.application.CommandScope; import com.freya02.botcommands.api.application.annotations.AppOption; import com.freya02.botcommands.api.application.slash.GuildSlashEvent; import com.freya02.botcommands.api.application.slash.annotations.JDASlashCommand;