add version command
All checks were successful
release-tag / release-image (push) Successful in 18s

This commit is contained in:
moriese
2025-06-02 10:28:37 +02:00
parent fd2d5f5bff
commit 9914cd2bfb
7 changed files with 82 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
import { SlashCommandBuilder, userMention } from "discord.js";
import { z } from "zod";
export const Commands = z.enum(["giessen", "medikamente", "hilfe", "support", "kofi", "disboard", "discadia", "accept", "welcome", "embed", "message", "reminder"]);
export const Commands = z.enum(["giessen", "medikamente", "hilfe", "support", "kofi", "disboard", "discadia", "accept", "welcome", "embed", "message", "reminder", "version"]);
export const CommandsMeta: Record<z.output<typeof Commands>, { description: string }> = {
giessen: {
@@ -39,6 +39,9 @@ export const CommandsMeta: Record<z.output<typeof Commands>, { description: stri
},
reminder: {
description: "admin use only"
},
version: {
description: "admin use only"
}
}
@@ -110,6 +113,9 @@ export default function getCommands() {
option.setName('input')
.setDescription('input for bot')
.setRequired(true)),
new SlashCommandBuilder()
.setName(Commands.Enum.version)
.setDescription(CommandsMeta.version.description),
].map((command) => command.toJSON());