1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-14 03:30:18 +00:00

Update play.js

This commit is contained in:
Matte 2019-10-20 22:53:12 +03:00 committed by GitHub
parent 74548e8f88
commit 0be11ffedd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,7 @@ module.exports = {
const url = args[1] ? args[1].replace(/<(.+)>/g, "$1") : ""; const url = args[1] ? args[1].replace(/<(.+)>/g, "$1") : "";
const serverQueue = client.queue.get(message.guild.id); const serverQueue = client.queue.get(message.guild.id);
const voiceChannel = message.member.voiceChannel; const voiceChannel = message.member.voiceChannel;
return message.channel.send(':x: I\'m sorry but playing music is not available due to an error with FFMPEG!');
if (!serverQueue) { if (!serverQueue) {
if (!voiceChannel) return message.channel.send(':x: I\'m sorry but you need to be in a voice channel to play music!'); if (!voiceChannel) return message.channel.send(':x: I\'m sorry but you need to be in a voice channel to play music!');
} else { } else {