mrmBot-Matrix/classes/musicCommand.js

14 lines
477 B
JavaScript
Raw Normal View History

import Command from "./command.js";
import { players, queues } from "../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 = players.get(message.channel.guild.id);
this.queue = queues.get(message.channel.guild.id);
}
static requires = ["sound"];
}
export default MusicCommand;