mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-22 22:43:17 +00:00
Update ready.js
This commit is contained in:
parent
156fb13739
commit
438c77eacb
@ -18,8 +18,13 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
|
||||
client.stations = await fetch('https://gitea.cwinfo.org/cwchristerw/radio/raw/branch/master/playlist.json')
|
||||
.then(res => res.json());
|
||||
try {
|
||||
client.stations = await fetch('https://gitea.cwinfo.org/cwchristerw/radio/raw/branch/master/playlist.json')
|
||||
.then(res => res.json());
|
||||
} catch (err) {
|
||||
client.stations = null;
|
||||
console.error(err);
|
||||
}
|
||||
|
||||
setInterval(async () => {
|
||||
client.stations = await fetch('https://gitea.cwinfo.org/cwchristerw/radio/raw/branch/master/playlist.json')
|
||||
|
Loading…
Reference in New Issue
Block a user