From 397ad038219c9c6fdd591347a1be0b6340f144de Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Thu, 18 Jul 2019 20:19:28 +0300 Subject: [PATCH] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 116938e8..8cfff89d 100644 --- a/index.js +++ b/index.js @@ -183,8 +183,7 @@ Please provide a value to select one of the search results ranging from __1-10__ } msg.channel.send(':x: Unknown command! Type -help for the list of commands!') return; - } - else { + } else { const args = msg.content.split(' '); const searchString = args.slice(1).join(' '); const url = args[1] ? args[1].replace(/<(.+)>/g, '$1') : ''; @@ -194,6 +193,7 @@ Please provide a value to select one of the search results ranging from __1-10__ 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 think you forgot what you wanted to play!'); 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!');