forked from ChrisChrome/weather-bot
Yeah no, no overlays on alert map
This commit is contained in:
parent
821d6b52aa
commit
a261733f21
4
index.js
4
index.js
|
@ -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`
|
||||||
}]
|
}]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue