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

Update index.js

This commit is contained in:
MatteZ02 2019-07-18 20:16:43 +03:00
parent de81037f05
commit 477707c341

View File

@ -68,6 +68,7 @@ client.on('message', async msg => {
command = command.slice(PREFIX.length)
if (command === 'play') {
return msg.channel.send(':x: I\'m sorry but Musix is currently unavaiable to playing music. :cry:')
if (!args[1]) return msg.channel.send(':x: I\'m sorry but you didn\'t specify a song');
const voiceChannel = msg.member.voiceChannel;
if (!voiceChannel) return msg.channel.send(':x: I\'m sorry but you need to be in a voice channel to play music!');