mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 03:53:17 +00:00
stations
This commit is contained in:
parent
438c77eacb
commit
f1184c6e0d
@ -35,7 +35,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const sstation = await client.funcs.searchStation(args.slice(1).join(' '), client);
|
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];
|
url = sstation.stream[sstation.stream.default];
|
||||||
station = sstation
|
station = sstation
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
module.exports = function (key, client) {
|
module.exports = function (key, client) {
|
||||||
|
if (client.stations === null) return false;
|
||||||
let foundStations = [];
|
let foundStations = [];
|
||||||
if (!key) return false;
|
if (!key) return false;
|
||||||
const probabilityIncrement = 100 / key.split(' ').length / 2;
|
const probabilityIncrement = 100 / key.split(' ').length / 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user