mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-14 04:30:18 +00:00
Added logger to voiceStateUpdate.js
This commit is contained in:
parent
c5f269c0a7
commit
b8c1816b1c
@ -18,7 +18,7 @@ module.exports = {
|
|||||||
client.funcs.statisticsUpdate(client, newState.guild, radio);
|
client.funcs.statisticsUpdate(client, newState.guild, radio);
|
||||||
radio.connection?.destroy();
|
radio.connection?.destroy();
|
||||||
radio.audioPlayer?.stop();
|
radio.audioPlayer?.stop();
|
||||||
console.log("[Radio] Stream stopped" + " / " + newState.guild.id);
|
client.funcs.logger('Radio', 'Stream stopped' + " / " + newState.guild.id);
|
||||||
return client.radio.delete(newState.guild.id);
|
return client.radio.delete(newState.guild.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ module.exports = {
|
|||||||
client.funcs.statisticsUpdate(client, newState.guild, radio);
|
client.funcs.statisticsUpdate(client, newState.guild, radio);
|
||||||
radio.connection?.destroy();
|
radio.connection?.destroy();
|
||||||
radio.audioPlayer?.stop();
|
radio.audioPlayer?.stop();
|
||||||
console.log("[Radio] Stream stopped" + " / " + newState.guild.id);
|
client.funcs.logger('Radio', 'Stream stopped' + " / " + newState.guild.id);
|
||||||
client.radio.delete(oldState.guild.id);
|
client.radio.delete(oldState.guild.id);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
@ -59,7 +59,7 @@ module.exports = {
|
|||||||
client.funcs.statisticsUpdate(client, newState.guild, radio);
|
client.funcs.statisticsUpdate(client, newState.guild, radio);
|
||||||
radio.connection?.destroy();
|
radio.connection?.destroy();
|
||||||
radio.audioPlayer?.stop();
|
radio.audioPlayer?.stop();
|
||||||
console.log("[Radio] Stream stopped" + " / " + newState.guild.id);
|
client.funcs.logger('Radio', 'Stream stopped' + " / " + newState.guild.id);
|
||||||
client.radio.delete(newState.guild.id);
|
client.radio.delete(newState.guild.id);
|
||||||
}
|
}
|
||||||
}, 60000);
|
}, 60000);
|
||||||
|
Loading…
Reference in New Issue
Block a user