gif and image

This commit is contained in:
Win 2024-05-30 12:15:43 +07:00
parent 127b430632
commit 4d3d4356a0
2 changed files with 4 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 1.9 MiB

View File

@ -74,11 +74,11 @@ client.on('ready', () => {
let date = new Date().toLocaleString('th-TH'); let date = new Date().toLocaleString('th-TH');
let caption = `# Weather Update\n## ${date}\n${radar_caption}` let caption = `# Raindar Update\n## ${date}\n${radar_caption}\n\nImages: GIF (left) - Static Image (right)`
let message = await channel.send({ let message = await channel.send({
content: caption, content: caption,
files: [curr_image_path] files: [curr_image_path, "https://weather.bangkok.go.th/Images/Radar/radarh.jpg"]
}); });
let message_id = message.id; let message_id = message.id;
@ -109,11 +109,11 @@ client.on('ready', () => {
let date = new Date().toLocaleString('th-TH'); let date = new Date().toLocaleString('th-TH');
let caption = `# Weather Update\n## ${date}\n${radar_caption}` let caption = `# Raindar Update\n## ${date}\n${radar_caption}\n\nImages: GIF (left) - Static Image (right)`
let message = await channel.send({ let message = await channel.send({
content: caption, content: caption,
files: [curr_image_path] files: [curr_image_path, "https://weather.bangkok.go.th/Images/Radar/radarh.jpg"]
}); });
console.log(`Sent ${message.id}: ${message.content}`); console.log(`Sent ${message.id}: ${message.content}`);