added reminder cmd + fixed custom channel
All checks were successful
release-tag / release-image (push) Successful in 22s

This commit is contained in:
2025-01-14 19:22:44 +01:00
parent 3852ff922e
commit 76525b73c9
6 changed files with 239 additions and 81 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", "accept", "welcome", "embed", "message"]);
export const Commands = z.enum(["giessen", "medikamente", "hilfe", "accept", "welcome", "embed", "message", "reminder"]);
export const CommandsMeta: Record<z.output<typeof Commands>, { description: string }> = {
giessen: {
@@ -24,6 +24,9 @@ export const CommandsMeta: Record<z.output<typeof Commands>, { description: stri
},
message: {
description: "admin use only"
},
reminder: {
description: "admin use only"
}
}
@@ -76,6 +79,13 @@ export default function getCommands() {
option.setName('input')
.setDescription('input for bot')
.setRequired(true)),
new SlashCommandBuilder()
.setName(Commands.Enum.reminder)
.setDescription(CommandsMeta.reminder.description)
.addStringOption(option =>
option.setName('input')
.setDescription('input for bot')
.setRequired(true)),
].map((command) => command.toJSON());