feat(discord-bot): add tg command
This commit is contained in:
@@ -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<Message<boolean>>,
|
||||
@@ -23,4 +24,5 @@ export const commands: Record<string, Command> = {
|
||||
gemmes: gemmesCommand,
|
||||
quete: queteCommand,
|
||||
result: resultCommand,
|
||||
tg: tgCommand,
|
||||
};
|
||||
|
||||
9
apps/discord-bot/src/commands/tg.ts
Normal file
9
apps/discord-bot/src/commands/tg.ts
Normal file
@@ -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" });
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user