Yeah no, no overlays on alert map

This commit is contained in:
Christopher Cookman 2024-05-19 23:54:36 -06:00
parent 821d6b52aa
commit a261733f21
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -1085,7 +1085,7 @@ discord.on("interactionCreate", async (interaction) => {
}); });
break; break;
case "alertmap": case "alertmap":
url = "https://www.spc.noaa.gov/products/wwa/wwa_new.gif" url = "https://forecast.weather.gov/wwamap/png/US.png"
await interaction.deferReply(); await interaction.deferReply();
fetch(url).then((res) => { fetch(url).then((res) => {
if (res.status !== 200) { if (res.status !== 200) {
@ -1103,7 +1103,7 @@ discord.on("interactionCreate", async (interaction) => {
}], }],
files: [{ files: [{
attachment: buffer, attachment: buffer,
name: `alerts}.png` name: `alerts.png`
}] }]
}); });
}); });