mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-10 03:00:18 +00:00
Stopped using dispatcher
This commit is contained in:
parent
284f0e9f0c
commit
10c6a8c589
@ -27,7 +27,7 @@ module.exports = {
|
|||||||
|
|
||||||
if(currentRadio){
|
if(currentRadio){
|
||||||
client.funcs.statisticsUpdate(client, currentRadio.currentGuild.guild, currentRadio);
|
client.funcs.statisticsUpdate(client, currentRadio.currentGuild.guild, currentRadio);
|
||||||
currentRadio.connection.dispatcher?.destroy();
|
currentRadio.connection.destroy();
|
||||||
currentRadio.voiceChannel.leave();
|
currentRadio.voiceChannel.leave();
|
||||||
const cembed = new Discord.MessageEmbed()
|
const cembed = new Discord.MessageEmbed()
|
||||||
.setTitle(client.messages.maintenanceTitle)
|
.setTitle(client.messages.maintenanceTitle)
|
||||||
|
@ -76,7 +76,7 @@ module.exports = {
|
|||||||
if (radio) {
|
if (radio) {
|
||||||
client.funcs.statisticsUpdate(client, msg.guild, radio);
|
client.funcs.statisticsUpdate(client, msg.guild, radio);
|
||||||
|
|
||||||
radio.connection.dispatcher.destroy();
|
radio.connection.destroy();
|
||||||
radio.station = station;
|
radio.station = station;
|
||||||
radio.textChannel = msg.channel;
|
radio.textChannel = msg.channel;
|
||||||
play(msg.guild, client, url);
|
play(msg.guild, client, url);
|
||||||
|
@ -9,7 +9,7 @@ module.exports = {
|
|||||||
const radio = client.radio.get(msg.guild.id);
|
const radio = client.radio.get(msg.guild.id);
|
||||||
if (client.funcs.check(client, msg, command)) {
|
if (client.funcs.check(client, msg, command)) {
|
||||||
client.funcs.statisticsUpdate(client, msg.guild, radio);
|
client.funcs.statisticsUpdate(client, msg.guild, radio);
|
||||||
radio.connection.dispatcher.destroy();
|
radio.connection.destroy();
|
||||||
radio.voiceChannel.leave();
|
radio.voiceChannel.leave();
|
||||||
client.radio.delete(msg.guild.id);
|
client.radio.delete(msg.guild.id);
|
||||||
msg.channel.send(client.messageEmojis["stop"] + client.messages.stop);
|
msg.channel.send(client.messageEmojis["stop"] + client.messages.stop);
|
||||||
|
@ -19,7 +19,7 @@ module.exports = {
|
|||||||
if (volume > 100) return msg.channel.send(client.messages.maxVolume);
|
if (volume > 100) return msg.channel.send(client.messages.maxVolume);
|
||||||
if (volume < 0) return msg.channel.send(client.messages.negativeVolume);
|
if (volume < 0) return msg.channel.send(client.messages.negativeVolume);
|
||||||
radio.volume = volume;
|
radio.volume = volume;
|
||||||
radio.connection.dispatcher.setVolume(volume / 5);
|
/*radio.connection.dispatcher.setVolume(volume / 5);*/
|
||||||
message.newVolume = client.messages.newVolume.replace("%volume%", volume);
|
message.newVolume = client.messages.newVolume.replace("%volume%", volume);
|
||||||
return msg.channel.send(message.newVolume);
|
return msg.channel.send(message.newVolume);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user