updates
This commit is contained in:
parent
4c4db68a03
commit
1ae871f3fb
|
@ -114,12 +114,11 @@ client.on('ready', () => {
|
||||||
if(radar_image_size != curr_image_size) {
|
if(radar_image_size != curr_image_size) {
|
||||||
console.log("File change detected!");
|
console.log("File change detected!");
|
||||||
|
|
||||||
await channel.messages.delete(message_id);
|
const delete_msg = await channel.messages.delete(message_id);
|
||||||
console.log("Delete old message");
|
|
||||||
|
|
||||||
let date = new Date().toLocaleString('th-TH');
|
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({
|
let message = await channel.send({
|
||||||
content: caption,
|
content: caption,
|
||||||
|
|
Loading…
Reference in New Issue