From 4b28b78800871ea073d5818ae7f59f816db5b9e2 Mon Sep 17 00:00:00 2001 From: Pihkaal Date: Tue, 12 May 2026 16:04:01 +0200 Subject: [PATCH] feat(discord-bot): add tg command --- apps/discord-bot/src/commands/index.ts | 2 ++ apps/discord-bot/src/commands/tg.ts | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 apps/discord-bot/src/commands/tg.ts diff --git a/apps/discord-bot/src/commands/index.ts b/apps/discord-bot/src/commands/index.ts index 94d655d..6c42a1a 100644 --- a/apps/discord-bot/src/commands/index.ts +++ b/apps/discord-bot/src/commands/index.ts @@ -5,6 +5,7 @@ import { iconeCommand } from "./icone"; import { gemmesCommand } from "./gemmes"; import { resultCommand } from "./result"; import { queteCommand } from "./quete"; +import { tgCommand } from "./tg"; export type CommandHandler = ( message: OmitPartialGroupDMChannel>, @@ -23,4 +24,5 @@ export const commands: Record = { gemmes: gemmesCommand, quete: queteCommand, result: resultCommand, + tg: tgCommand, }; diff --git a/apps/discord-bot/src/commands/tg.ts b/apps/discord-bot/src/commands/tg.ts new file mode 100644 index 0000000..4a6279a --- /dev/null +++ b/apps/discord-bot/src/commands/tg.ts @@ -0,0 +1,9 @@ +import { noMention } from "~/discord"; +import type { Command } from "./index"; + +export const tgCommand: Command = { + help: "...", + handler: async (message) => { + await message.reply({ ...noMention, content: "non toi tg" }); + }, +};