From 1ae871f3fb179e533124474051c17548c794e654 Mon Sep 17 00:00:00 2001 From: Win Date: Sat, 29 Jun 2024 17:47:25 +0700 Subject: [PATCH] updates --- src/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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,