diff --git a/events/ready.js b/events/ready.js index a6e2f31..e04cce3 100644 --- a/events/ready.js +++ b/events/ready.js @@ -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')