mrmBot-Matrix/classes/musicCommand.js

13 lines
422 B
JavaScript
Raw Normal View History

const Command = require("./command.js");
const soundPlayer = require("../utils/soundplayer.js");
class MusicCommand extends Command {
constructor(client, cluster, ipc, message, args, content, specialArgs) {
super(client, cluster, ipc, message, args, content, specialArgs);
this.connection = soundPlayer.players.get(message.channel.guild.id);
}
static requires = ["sound"];
}
module.exports = MusicCommand;