mrmBot-Matrix/classes/musicCommand.js

19 lines
519 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-06-11 20:23:41 +00:00
if (this.channel.guild) {
2022-03-31 18:47:22 +00:00
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;
static directAllowed = false;
}
2022-03-31 18:49:17 +00:00
export default MusicCommand;