mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2026-11-03 05:35:00 +00:00
Added error message when using play command with URL
This commit is contained in:
1 parent
8caca9e210
commit
f16e6ee3bb
2 files changed
+3
-2
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user