1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-10 05:10:17 +00:00

Update play.js

This commit is contained in:
MatteZ02 2019-10-29 17:47:57 +02:00
parent 6aa654c9e7
commit 0bfa09209a

View File

@ -3,6 +3,7 @@ module.exports = async function (guild, song, client, message, seek, play) {
const ytdl = require('ytdl-core');
const serverQueue = client.queue.get(guild.id);
if (!song) {
console.log('No song')
serverQueue.voiceChannel.leave();
client.queue.delete(guild.id);
return;