forked from ChrisChrome/weather-bot
WHOOPS
This commit is contained in:
parent
323cf185e5
commit
d64e402e16
2
index.js
2
index.js
|
@ -349,7 +349,7 @@ xmpp.on("stanza", (stanza) => {
|
|||
}
|
||||
}).then((res) => {
|
||||
if (config.debug >= 1) console.log(`${colors.magenta("[DEBUG]")} NTFY sent for ${config.ntfy.prefix}${fromChannel} with status ${res.status} ${res.statusText}`);
|
||||
if (res.status !== 200) console.log(`${colors.red("[ERROR]")} NTFY failed for ${config.ntfy.prefix}${fromChannel} with status ${res.status} ${res.statusText}`
|
||||
if (res.status !== 200) console.log(`${colors.red("[ERROR]")} NTFY failed for ${config.ntfy.prefix}${fromChannel} with status ${res.status} ${res.statusText}`);
|
||||
|
||||
|
||||
}).catch((err) => {
|
||||
|
|
Loading…
Reference in a new issue