mrmBot-Matrix/classes/musicCommand.js

13 lines
No EOL
414 B
JavaScript

import Command from "./command.js";
import { players } from "../utils/soundplayer.js";
class MusicCommand extends Command {
constructor(client, cluster, worker, ipc, message, args, content, specialArgs) {
super(client, cluster, worker, ipc, message, args, content, specialArgs);
this.connection = players.get(message.channel.guild.id);
}
static requires = ["sound"];
}
export default MusicCommand;