gif and image
This commit is contained in:
parent
127b430632
commit
4d3d4356a0
Binary file not shown.
Before Width: | Height: | Size: 1.9 MiB After Width: | Height: | Size: 1.9 MiB |
|
@ -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}`);
|
||||||
|
|
Loading…
Reference in New Issue