Added error message when using play command with URL

This commit is contained in:
Christer Warén committed 2020-09-22 16:47:06 +03:00
1 parent 8caca9e210
commit f16e6ee3bb
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ module.exports = {
let station;
const number = parseInt(args[1] - 1);
if (url.startsWith('http')) {
return;
return msg.channel.send(client.messageEmojis["error"] + client.messages.errorStationURL);
} else if (!isNaN(number)) {
if (number > client.stations.length - 1) {
return msg.channel.send(client.messageEmojis["error"] + client.messages.wrongStationNumber);