mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-07-01 15:43:38 +00:00
update
This commit is contained in:
@ -2,9 +2,7 @@ module.exports = async function (msg, voiceChannel, client, url) {
|
||||
const radio = client.radio.get(msg.guild.id);
|
||||
|
||||
if (radio) {
|
||||
radio.songs.push(song);
|
||||
if (playlist) return;
|
||||
return msg.channel.send(`<:green_check_mark:674265384777416705> **${song.title}** has been added to the queue!`);
|
||||
radio.connection.dispatcher.end('Stopped');
|
||||
}
|
||||
|
||||
const construct = {
|
||||
|
@ -3,8 +3,8 @@ module.exports = async function (guild, client, url) {
|
||||
const radio = client.radio.get(guild.id);
|
||||
const dispatcher = radio.connection
|
||||
.play(url, { bitrate: 1024, passes: 10, volume: 1, highWaterMark: 1 << 25 })
|
||||
.on("finish", reason => {
|
||||
client.dispatcher.finish(client, reason, guild);
|
||||
.on("finish", () => {
|
||||
radio.delete();
|
||||
});
|
||||
dispatcher.on('start', () => {
|
||||
dispatcher.player.streamingData.pausedTime = 0;
|
||||
|
Reference in New Issue
Block a user