home assistant integration; volume for tidal; do some abstracting
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import { Collection } from "@discordjs/collection";
|
||||
import { PingCommand } from "./impl/ping.ts";
|
||||
import { PositionCommand } from "./impl/position.ts";
|
||||
import { SongCommand } from "./impl/song.ts";
|
||||
import { TempCommand } from "./impl/temp.ts";
|
||||
import { VanishCommand } from "./impl/vanish.ts";
|
||||
import { VolumeCommand } from "./impl/volume.ts";
|
||||
import { WhereCommand } from "./impl/where.ts";
|
||||
import type { ICommand } from "./interface.ts";
|
||||
|
||||
export const commands = new Collection<string, ICommand>();
|
||||
@@ -10,6 +14,10 @@ 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());
|
||||
|
||||
for (const command of cmds) {
|
||||
commands.set(command.name, command);
|
||||
|
||||
Reference in New Issue
Block a user