diff --git a/src/index.js b/src/index.js index 2591312..571f400 100644 --- a/src/index.js +++ b/src/index.js @@ -114,12 +114,11 @@ client.on('ready', () => { if(radar_image_size != curr_image_size) { console.log("File change detected!"); - await channel.messages.delete(message_id); - console.log("Delete old message"); + const delete_msg = await channel.messages.delete(message_id); let date = new Date().toLocaleString('th-TH'); - let caption = `# Raindar Update\n## ${date}\n${radar_caption}\n\nImages: GIF (left) - Static Image (right)` + let caption = `# Raindar Update\n## ${date}\n${radar_caption}\n\nLeft: Current Observation\nRight: 3 hour forecast` let message = await channel.send({ content: caption,