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

@@ -36,6 +36,7 @@
"./entities/channels/voice/voice-channels.service": "./dist/entities/channels/voice/voice-channels.service.js",
"./entities/commands/commands.entity": "./dist/entities/commands/commands.entity.js",
"./entities/commands/commands.schema": "./dist/entities/commands/commands.schema.js",
"./entities/components": "./dist/entities/components/index.js",
"./entities/interactions/interactions.schema": "./dist/entities/interactions/interactions.schema.js",
"./entities/messages/messages.service": "./dist/entities/messages/messages.service.js",
"./entities/roles/roles.schema": "./dist/entities/roles/roles.schema.js",

View File

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

View File

@@ -64,4 +64,13 @@ export class WaterMeService {
reply,
};
}
async handleCommand(channelId: string) {
const result = this.waterMe();
this.messagesService.sendToChannel(
{ id: channelId },
{ content: result.reply },
);
}
}