feat: renamed help command to about

This commit is contained in:
TrèsAbhi committed 2023-10-01 10:56:03 -05:00
1 parent 1d7de715e7
commit e7f517e157
3 files changed
+8 -8

No files matched your search

@@ -1,4 +1,4 @@
# About # Introduction
Blitzkrieg is a multipurpose bot for anything and everything World of Tanks Blitz. Blitzkrieg is a multipurpose bot for anything and everything World of Tanks Blitz.
@@ -8,14 +8,14 @@ const RAW_PATH = `https://raw.githubusercontent.com/tresabhi/blitzkrieg/main/doc
const DOCS = { const DOCS = {
permissions: 'guide/permissions', permissions: 'guide/permissions',
embeds: 'guide/embeds', embeds: 'guide/embeds',
about: 'guide/about', introduction: 'guide/introduction',
invite: 'guide/invite', invite: 'guide/invite',
timezones: 'guide/timezones', timezones: 'guide/timezones',
}; };
const DOC_DESCRIPTIONS: Record<keyof typeof DOCS, string> = { const DOC_DESCRIPTIONS: Record<keyof typeof DOCS, string> = {
permissions: 'The permissions needed for the bot to function', permissions: 'The permissions needed for the bot to function',
embeds: 'How embeds work', embeds: 'How embeds work',
about: 'About the bot', introduction: 'About the bot',
invite: 'How to invite the bot', invite: 'How to invite the bot',
timezones: 'How Blitzkrieg infers and uses your timezone', timezones: 'How Blitzkrieg infers and uses your timezone',
}; };
@@ -28,14 +28,14 @@ function addDocsSubcommands(option: SlashCommandSubcommandsOnlyBuilder) {
return option; return option;
} }
export const helpCommand: CommandRegistry = { export const aboutCommand: CommandRegistry = {
inProduction: true, inProduction: true,
inPublic: true, inPublic: true,
command: addDocsSubcommands( command: addDocsSubcommands(
new SlashCommandBuilder() new SlashCommandBuilder()
.setName('help') .setName('about')
.setDescription('All the help you need about the bot') .setDescription('All the info you need about the bot')
.addSubcommand((option) => .addSubcommand((option) =>
option option
.setName('commands') .setName('commands')
+2 -2
View File
@@ -13,12 +13,12 @@ import {
SlashCommandSubcommandsOnlyBuilder, SlashCommandSubcommandsOnlyBuilder,
} from 'discord.js'; } from 'discord.js';
import discord from '../../../discord.json' assert { type: 'json' }; import discord from '../../../discord.json' assert { type: 'json' };
import { aboutCommand } from '../../commands/about';
import { clanEventCommand } from '../../commands/clanEvent'; import { clanEventCommand } from '../../commands/clanEvent';
import { debugCommand } from '../../commands/debug'; import { debugCommand } from '../../commands/debug';
import { eligibleCommand } from '../../commands/eligible'; import { eligibleCommand } from '../../commands/eligible';
import { evolutionCommand } from '../../commands/evolution'; import { evolutionCommand } from '../../commands/evolution';
import { fullStatsCommand } from '../../commands/fullStats'; import { fullStatsCommand } from '../../commands/fullStats';
import { helpCommand } from '../../commands/help';
import { inactiveCommand } from '../../commands/inactive'; import { inactiveCommand } from '../../commands/inactive';
import { ownedTanksCommand } from '../../commands/ownedTanks'; import { ownedTanksCommand } from '../../commands/ownedTanks';
import { pingCommand } from '../../commands/ping'; import { pingCommand } from '../../commands/ping';
@@ -84,7 +84,7 @@ const rest = new REST().setToken(secrets.DISCORD_TOKEN);
export const COMMANDS_RAW: CommandRegistry[] = [ export const COMMANDS_RAW: CommandRegistry[] = [
debugCommand, debugCommand,
eligibleCommand, eligibleCommand,
helpCommand, aboutCommand,
inactiveCommand, inactiveCommand,
ownedTanksCommand, ownedTanksCommand,
playerAchievementsCommand, playerAchievementsCommand,