feat(discord-bot): add tg command
This commit is contained in:
@@ -5,6 +5,7 @@ import { iconeCommand } from "./icone";
|
|||||||
import { gemmesCommand } from "./gemmes";
|
import { gemmesCommand } from "./gemmes";
|
||||||
import { resultCommand } from "./result";
|
import { resultCommand } from "./result";
|
||||||
import { queteCommand } from "./quete";
|
import { queteCommand } from "./quete";
|
||||||
|
import { tgCommand } from "./tg";
|
||||||
|
|
||||||
export type CommandHandler = (
|
export type CommandHandler = (
|
||||||
message: OmitPartialGroupDMChannel<Message<boolean>>,
|
message: OmitPartialGroupDMChannel<Message<boolean>>,
|
||||||
@@ -23,4 +24,5 @@ export const commands: Record<string, Command> = {
|
|||||||
gemmes: gemmesCommand,
|
gemmes: gemmesCommand,
|
||||||
quete: queteCommand,
|
quete: queteCommand,
|
||||||
result: resultCommand,
|
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