diff --git a/src/commands/index.ts b/src/commands/index.ts index d8422ca..57a9ab1 100644 --- a/src/commands/index.ts +++ b/src/commands/index.ts @@ -20,7 +20,6 @@ export { EmojiCommand } from "./emojiCommand"; export { GithubCommand, ReviewListCommand } from "./githubCommand"; -export { PlanCommand } from "./planCommand"; export { QuickLinksCommand } from "./quickLinksCommand"; export { TestCommand } from "./testCommand"; export { UserCommand } from "./userCommand"; diff --git a/src/commands/planCommand.ts b/src/commands/planCommand.ts deleted file mode 100644 index 77729b5..0000000 --- a/src/commands/planCommand.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2024, the SerenityOS & Ladybird developers. - * Copyright (c) 2024, versecafe - * - * SPDX-License-Identifier: BSD-2-Clause - */ - -import { ChatInputCommandInteraction, SlashCommandBuilder } from "discord.js"; -import Command from "./command"; - -export class PlanCommand extends Command { - private readonly baseReply: string = `> Will Ladybird support \`$THING\`?\nMaybe. Maybe not. There is no plan.\n\nSee: [FAQ]()`; - - override data() { - const aliases = ["plan", "wen"]; - const description = "Check if a feature is part of the plan"; - - const baseCommand = new SlashCommandBuilder() - .setDescription(description) - .addStringOption(feature => - feature.setName("feature").setDescription("The feature to check") - ); - - return aliases.map(name => baseCommand.setName(name).toJSON()); - } - - override async handleCommand(interaction: ChatInputCommandInteraction): Promise { - if (!interaction.isCommand()) return; - - let content = this.baseReply; - - const feature = interaction.options.getString("feature"); - - if (feature) content = content.replace("`$THING`", feature); - - await interaction.reply({ - content, - }); - } -}