This commit is contained in:
MatteZ02 2020-03-11 23:11:00 +02:00
parent 438c77eacb
commit f1184c6e0d
2 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,7 @@ module.exports = {
}
} else {
const sstation = await client.funcs.searchStation(args.slice(1).join(' '), client);
if (sstation === false) return msg.channel.send('No stations found!');
if (!sstation) return msg.channel.send('No stations found!');
url = sstation.stream[sstation.stream.default];
station = sstation
}

View File

@ -1,4 +1,5 @@
module.exports = function (key, client) {
if (client.stations === null) return false;
let foundStations = [];
if (!key) return false;
const probabilityIncrement = 100 / key.split(' ').length / 2;