Disable help command and remove unnecessary imports

This commit is contained in:
floppydiskette 2024-11-17 18:55:16 +00:00
parent 103f6ce538
commit 287343b5d3
Signed by: fwoppydwisk
SSH key fingerprint: SHA256:Hqn452XQ1ETzUt/FthJu6+OFkS4NBxCv5VQSEvuk7CE
3 changed files with 1 additions and 4 deletions

View file

@ -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);

View file

@ -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;

View file

@ -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;