diff --git a/data/current_radar.jpg b/data/current_radar.jpg index f1a483c..8cf631f 100644 Binary files a/data/current_radar.jpg and b/data/current_radar.jpg differ diff --git a/src/index.js b/src/index.js index 4dca5c0..c402473 100644 --- a/src/index.js +++ b/src/index.js @@ -92,6 +92,7 @@ client.on('ready', () => { console.log("New: " + radar_image_size); if(radar_image_size != curr_image_size) { + console.log("File change detected!"); let message = await channel.send({ content: radar_caption, files: [curr_image_path] @@ -104,4 +105,12 @@ client.on('ready', () => { })(); }); +client.on(Events.ShardError, error => { + console.log('A websocket connection encountered an error: ', error); +}); + +process.on('unhandledRejection', error => { + console.error(error); +}); + client.login(config.token);