Files
twitch-bot/src/commands/collection.ts
2025-11-16 20:20:08 +01:00

27 lines
906 B
TypeScript

import { Collection } from "@discordjs/collection";
import { PingCommand } from "./impl/ping.js";
import { PositionCommand } from "./impl/position.js";
import { SongCommand } from "./impl/song.js";
import { StandCommand } from "./impl/stand.js";
import { TempCommand } from "./impl/temp.js";
import { VanishCommand } from "./impl/vanish.js";
import { VolumeCommand } from "./impl/volume.js";
import { WhereCommand } from "./impl/where.js";
import type { ICommand } from "./interface.js";
export const commands = new Collection<string, ICommand>();
const cmds: Array<ICommand> = [];
cmds.push(new SongCommand());
cmds.push(new PingCommand());
cmds.push(new VanishCommand());
cmds.push(new PositionCommand());
cmds.push(new TempCommand());
cmds.push(new WhereCommand());
cmds.push(new VolumeCommand());
cmds.push(new StandCommand());
for (const command of cmds) {
commands.set(command.name, command);
}