good progress :3

This commit is contained in:
2025-01-05 03:51:02 +01:00
parent 07aa025ba0
commit 94d2fc40e6
12 changed files with 243 additions and 54 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"]);
export const Commands = z.enum(["giessen", "medikamente", "hilfe", "accept"]);
export const CommandsMeta: Record<z.output<typeof Commands>, { description: string }> = {
giessen: {
@@ -13,6 +13,9 @@ export const CommandsMeta: Record<z.output<typeof Commands>, { description: stri
hilfe: {
description: "ich schreibe dir auf, was du alles mit mir machen kannst :)"
},
accept: {
description: "admin use only"
}
}
export type CommandsType = z.output<typeof Commands>;
@@ -28,6 +31,13 @@ export default function getCommands() {
new SlashCommandBuilder()
.setName(Commands.Enum.hilfe)
.setDescription(CommandsMeta.hilfe.description),
new SlashCommandBuilder()
.setName(Commands.Enum.accept)
.setDescription(CommandsMeta.accept.description)
.addStringOption(option =>
option.setName('input')
.setDescription('input for bot')
.setRequired(true)),
].map((command) => command.toJSON());
return commands;