mrmBot-Matrix/classes/musicCommand.js
2021-07-06 07:53:09 -05:00

13 lines
No EOL
438 B
JavaScript

const Command = require("./command.js");
const soundPlayer = require("../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 = soundPlayer.players.get(message.channel.guild.id);
}
static requires = ["sound"];
}
module.exports = MusicCommand;