mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-09 23:00:18 +00:00
Some changes
This commit is contained in:
parent
60cf8df203
commit
f8691b1892
@ -3,13 +3,11 @@ module.exports = {
|
|||||||
description: 'Stop command.',
|
description: 'Stop command.',
|
||||||
alias: 'none',
|
alias: 'none',
|
||||||
usage: '',
|
usage: '',
|
||||||
permission: 'MANAGE_CHANNELS',
|
permission: 'none',
|
||||||
category: 'music',
|
category: 'music',
|
||||||
execute(msg, args, client, Discord, prefix, command) {
|
execute(msg, args, client, Discord, prefix, command) {
|
||||||
const radio = client.radio.get(msg.guild.id);
|
const radio = client.radio.get(msg.guild.id);
|
||||||
if (client.funcs.check(client, msg, command)) {
|
radio.connection.dispatcher.end();
|
||||||
radio.connection.dispatcher.end();
|
msg.channel.send('<:stop:674685626108477519> Stopped the music!');
|
||||||
msg.channel.send('<:stop:674685626108477519> Stopped the music!')
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
@ -5,7 +5,7 @@ module.exports = async function (guild, client, url) {
|
|||||||
.play(url, { bitrate: 1024, passes: 10, volume: 1, highWaterMark: 1 << 25 })
|
.play(url, { bitrate: 1024, passes: 10, volume: 1, highWaterMark: 1 << 25 })
|
||||||
.on("finish", () => {
|
.on("finish", () => {
|
||||||
radio.voiceChannel.leave();
|
radio.voiceChannel.leave();
|
||||||
radio.delete();
|
client.radio.delete(guild.id);
|
||||||
return;
|
return;
|
||||||
});
|
});
|
||||||
dispatcher.on('start', () => {
|
dispatcher.on('start', () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user