forked from ChrisChrome/weather-bot
Fix sat ext
This commit is contained in:
parent
595fc8c7c6
commit
5e6a4388bb
|
@ -9,7 +9,7 @@
|
||||||
"url": "https://cdn.star.nesdis.noaa.gov/GOES16/ABI/CONUS/13/latest.jpg"
|
"url": "https://cdn.star.nesdis.noaa.gov/GOES16/ABI/CONUS/13/latest.jpg"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Full Disk",
|
"name": "FullDisk",
|
||||||
"url": "https://cdn.star.nesdis.noaa.gov/GOES16/ABI/FD/GEOCOLOR/678x678.jpg"
|
"url": "https://cdn.star.nesdis.noaa.gov/GOES16/ABI/FD/GEOCOLOR/678x678.jpg"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
"url": "https://cdn.star.nesdis.noaa.gov/GOES18/ABI/CONUS/13/latest.jpg"
|
"url": "https://cdn.star.nesdis.noaa.gov/GOES18/ABI/CONUS/13/latest.jpg"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Full Disk",
|
"name": "FullDisk",
|
||||||
"url": "https://cdn.star.nesdis.noaa.gov/GOES18/ABI/FD/GEOCOLOR/678x678.jpg"
|
"url": "https://cdn.star.nesdis.noaa.gov/GOES18/ABI/FD/GEOCOLOR/678x678.jpg"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
4
index.js
4
index.js
|
@ -1205,12 +1205,12 @@ discord.on("interactionCreate", async (interaction) => {
|
||||||
imageBuffers[imgData.name] = buffer;
|
imageBuffers[imgData.name] = buffer;
|
||||||
files.push({
|
files.push({
|
||||||
attachment: buffer,
|
attachment: buffer,
|
||||||
name: `${imgData.name}.png`
|
name: `${imgData.name}.jpg`
|
||||||
});
|
});
|
||||||
embeds.push({
|
embeds.push({
|
||||||
title: `${sat} ${imgData.name}`,
|
title: `${sat} ${imgData.name}`,
|
||||||
image: {
|
image: {
|
||||||
url: `attachment://${imgData.name}.png`
|
url: `attachment://${imgData.name}.jpg`
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// Check if we have all the images
|
// Check if we have all the images
|
||||||
|
|
Loading…
Reference in a new issue