1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 03:33: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 ytdl = require('ytdl-core');
const serverQueue = client.queue.get(guild.id); const serverQueue = client.queue.get(guild.id);
if (!song) { if (!song) {
console.log('No song')
serverQueue.voiceChannel.leave(); serverQueue.voiceChannel.leave();
client.queue.delete(guild.id); client.queue.delete(guild.id);
return; return;