yaejunyang/packages/bot/commands/index.ts
2026-05-21 18:21:38 +00:00

20 lines
760 B
TypeScript

import type { DiscordCommandExecute } from "../command";
export const defineCommands = [
(await import("./getReadChannels")).default,
(await import("./getStatus")).default,
(await import("./joinVoiceChannel")).default,
(await import("./leaveVoiceChannel")).default,
(await import("./playVoice")).default,
(await import("./readChannel")).default,
(await import("./setNya")).default,
(await import("./setSupertonicStyle")).default,
(await import("./setVoice")).default,
(await import("./skipCurrent")).default,
(await import("./unreadChannel")).default,
];
export const commandExecuteNameHashMap: {
[key: string]: DiscordCommandExecute;
} = Object.fromEntries(
defineCommands.map((command) => [command.data.name, command.execute]),
);