mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-22 16:23:18 +00:00
Added error message when using play command with URL
This commit is contained in:
parent
8caca9e210
commit
f16e6ee3bb
@ -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);
|
||||
|
@ -40,5 +40,6 @@ module.exports = {
|
||||
statusField2: "API Latency",
|
||||
statusField3: "Uptime",
|
||||
statusField4: "Version",
|
||||
statusField5: "Hosted by"
|
||||
statusField5: "Hosted by",
|
||||
errorStationURL: "Station can't be URL"
|
||||
};
|
Loading…
Reference in New Issue
Block a user