This commit is contained in:
Win 2024-06-29 17:47:25 +07:00
parent 4c4db68a03
commit 1ae871f3fb
1 changed files with 2 additions and 3 deletions

View File

@ -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,