Skip to content

Commit

Permalink
feat: remove help command
Browse files Browse the repository at this point in the history
  • Loading branch information
yurisasc committed Jan 19, 2024
1 parent 0609bab commit b5f3633
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 130 deletions.
23 changes: 0 additions & 23 deletions discord-bot/lang/lang.en-GB.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
{
"data": {
"displayEmbeds": {
"helpCommands": {
"title": "Help - {{REF:helpOptions.commands}}",
"fields": [
{
"name": "Commands",
"value": [
"To see the available commands, just type `/` and select the bot from the left side. You can then scroll through all available commands. Some commands may be hidden if you don't have permission to view them.",
"",
"{{CMD_LINK_START_SERVER}} - {{REF:commandDescs.startServer}}",
"{{CMD_LINK_STOP_SERVER}} - {{REF:commandDescs.stopServer}}"
]
}
]
},
"startServer": {
"title": "🟡 Starting {{SERVER_NAME}}...",
"description": "Please wait while the server starts. It may take up to 10 minutes."
Expand Down Expand Up @@ -84,20 +70,17 @@
},
"refs": {
"chatCommands": {
"help": "help",
"startServer": "start",
"stopServer": "stop"
},
"arguments": {
"option": "option"
},
"commandDescs": {
"help": "Find help or contact support.",
"startServer": "Start the minecraft server.",
"stopServer": "Stop the minecraft server."
},
"argDescs": {
"helpOption": "Option.",
"startOption": "Server to start.",
"stopOption": "Server to stop."
},
Expand Down Expand Up @@ -147,12 +130,6 @@
"ViewChannel": "View Channel(s)",
"ViewGuildInsights": "View Server Insights"
},
"helpOptions": {
"commands": "Commands"
},
"helpOptionDescs": {
"commands": "{{REF:helpOptions.commands}} -- What commands are there? How do I restrict who is allowed to use commands?"
},
"yesNo": {
"yes": "Yes",
"no": "No"
Expand Down
25 changes: 0 additions & 25 deletions discord-bot/lang/lang.en-US.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
{
"data": {
"displayEmbeds": {
"helpCommands": {
"title": "Help - {{REF:helpOptions.commands}}",
"fields": [
{
"name": "Commands",
"value": [
"To see the available commands, just type `/` and select the bot from the left side. You can then scroll through all available commands. Some commands may be hidden if you don't have permission to view them.",
"",
"{{CMD_LINK_START_SERVER}} - {{REF:commandDescs.startServer}}",
"{{CMD_LINK_STOP_SERVER}} - {{REF:commandDescs.stopServer}}"
]
}
]
},
"startServer": {
"title": "🟡 Starting {{SERVER_NAME}}...",
"description": "Please wait while the server starts. It may take up to 10 minutes."
Expand Down Expand Up @@ -84,22 +70,17 @@
},
"refs": {
"chatCommands": {
"help": "help",
"rlcraft": "rlcraft",
"startServer": "start",
"stopServer": "stop"
},
"arguments": {
"option": "option"
},
"commandDescs": {
"help": "Find help or contact support.",
"rlcraft": "Commands for the RLcraft server.",
"startServer": "Start the minecraft server.",
"stopServer": "Stop the minecraft server."
},
"argDescs": {
"helpOption": "Option.",
"startOption": "Server to start.",
"stopOption": "Server to stop."
},
Expand Down Expand Up @@ -149,12 +130,6 @@
"ViewChannel": "View Channel(s)",
"ViewGuildInsights": "View Server Insights"
},
"helpOptions": {
"commands": "Commands"
},
"helpOptionDescs": {
"commands": "{{REF:helpOptions.commands}} -- What commands are there? How do I restrict who is allowed to use commands?"
},
"yesNo": {
"yes": "Yes",
"no": "No"
Expand Down
20 changes: 0 additions & 20 deletions discord-bot/src/commands/args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,10 @@ import {
ApplicationCommandOptionType,
} from "discord.js";

import { HelpOption } from "../enums/help-option.js";
import { Language } from "../models/enum-helpers/language.js";
import { Lang } from "../services/index.js";

export class Args {
public static readonly HELP_OPTION: APIApplicationCommandBasicOption = {
name: Lang.getRef("arguments.option", Language.Default),
name_localizations: Lang.getRefLocalizationMap("arguments.option"),
description: Lang.getRef("argDescs.helpOption", Language.Default),
description_localizations: Lang.getRefLocalizationMap(
"argDescs.helpOption"
),
type: ApplicationCommandOptionType.String,
choices: [
{
name: Lang.getRef("helpOptionDescs.commands", Language.Default),
name_localizations: Lang.getRefLocalizationMap(
"helpOptionDescs.commands"
),
value: HelpOption.COMMANDS,
},
],
};

public static startOption(
serverNames: string[]
): APIApplicationCommandBasicOption {
Expand Down
59 changes: 0 additions & 59 deletions discord-bot/src/commands/chat/help-command.ts

This file was deleted.

1 change: 0 additions & 1 deletion discord-bot/src/commands/chat/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export { StartServerCommand } from "./start-server-command.js";
export { StopServerCommand } from "./stop-server-command.js";
export { HelpCommand } from "./help-command.js";
2 changes: 0 additions & 2 deletions discord-bot/src/start-bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ dotenv.config({
});

import {
HelpCommand,
StartServerCommand,
StopServerCommand,
} from "./commands/chat/index.js";
Expand Down Expand Up @@ -55,7 +54,6 @@ async function start(): Promise<void> {

// Commands
let commands: Command[] = [
new HelpCommand(),
new StartServerCommand(multiServersService),
new StopServerCommand(multiServersService),
];
Expand Down

0 comments on commit b5f3633

Please sign in to comment.