implement command handling

This commit is contained in:
2026-02-18 18:59:31 +01:00
parent 0a460800b6
commit ca4b64bde1
6 changed files with 48 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
import z from "zod";
export const CommandKeyOptions = [
"giessen",
"water-avocadi",
"medikamente",
"hilfe",
"support",

View File

@@ -0,0 +1,24 @@
import { EmbedBuilder } from "discord.js";
import { Commands, CommandsMeta } from "commands";
export default function getEmbed() { // channel.send({ embeds: [exampleEmbed] });
const exampleEmbed = new EmbedBuilder()
.setColor(0x0099FF)
.setTitle('Some title')
.setURL('https://discord.js.org/')
.setAuthor({ name: 'Some name', iconURL: 'https://i.imgur.com/AfFp7pu.png', url: 'https://discord.js.org' })
.setDescription('Some description here')
.setThumbnail('https://i.imgur.com/AfFp7pu.png')
.addFields(
{ name: Commands.Enum.giessen, value: CommandsMeta.giessen.description },
{ name: Commands.Enum.medikamente, value: CommandsMeta.medikamente.description },
{ name: Commands.Enum.hilfe, value: CommandsMeta.hilfe.description },
{ name: '\u200B', value: '\u200B' },
{ name: 'Inline field title', value: 'Some value here', inline: true },
)
.addFields({ name: 'Inline field title', value: 'Some value here', inline: true })
.setImage('https://i.imgur.com/AfFp7pu.png')
.setTimestamp()
.setFooter({ text: 'Some footer text here', iconURL: 'https://i.imgur.com/AfFp7pu.png' });
return exampleEmbed;
}