mrmBot-Matrix/classes/musicCommand.js

13 lines
438 B
JavaScript
Raw Normal View History

const Command = require("./command.js");
const soundPlayer = require("../utils/soundplayer.js");
class MusicCommand extends Command {
2021-07-05 04:15:27 +00:00
constructor(client, cluster, worker, ipc, message, args, content, specialArgs) {
2021-07-06 12:53:09 +00:00
super(client, cluster, worker, ipc, message, args, content, specialArgs);
this.connection = soundPlayer.players.get(message.channel.guild.id);
}
static requires = ["sound"];
}
module.exports = MusicCommand;