mrmBot-Matrix/classes/musicCommand.js

18 lines
481 B
JavaScript
Raw Normal View History

import Command from "./command.js";
import { players, queues } from "../utils/soundplayer.js";
class MusicCommand extends Command {
constructor(client, cluster, worker, ipc, options) {
super(client, cluster, worker, ipc, options);
2022-03-31 18:47:22 +00:00
if (this.channel) {
this.connection = players.get(this.channel.guild.id);
this.queue = queues.get(this.channel.guild.id);
}
}
static requires = ["sound"];
2022-03-31 18:49:17 +00:00
static slashAllowed = false;
}
2022-03-31 18:49:17 +00:00
export default MusicCommand;