wip medication and db (sqlite)

This commit is contained in:
Moritz Riese
2024-12-28 20:09:43 +01:00
parent 06ef16581c
commit 03d36358bf
19 changed files with 191 additions and 46 deletions

View File

@@ -1,14 +1,18 @@
import { SlashCommandBuilder } from "discord.js";
import { z } from "zod";
export const Commands = z.enum(["water-me"]);
export const Commands = z.enum(["giessen", "medikamente"]);
export type CommandsType = z.output<typeof Commands>;
export default function getCommands() {
const commands = [
new SlashCommandBuilder()
.setName(Commands.Enum["water-me"])
.setName(Commands.Enum.giessen)
.setDescription("giess mich mit etwas wasser :3"),
new SlashCommandBuilder()
.setName(Commands.Enum.medikamente)
.setDescription("ich erinnere dich gerne daran, deine medikamente zu nehmen! :)"),
].map((command) => command.toJSON());
return commands;