Making search better

This commit is contained in:
Christer Warén committed 2020-03-12 00:39:08 +02:00
1 parent 035173b6cc
commit 9f20f3f405
3 files changed
+5 -2

No files matched your search

+1
View File
@@ -34,6 +34,7 @@ module.exports = {
station = client.stations[number];
}
} else {
if(args[1].length < 4) return msg.channel.send('<:redx:674263474704220182> station must be over 3 characters!');
const sstation = await client.funcs.searchStation(args.slice(1).join(' '), client);
if (!sstation) return msg.channel.send('No stations found!');
url = sstation.stream[sstation.stream.default];