MCPcopy
hub / github.com/futantan/OpenGpt / sendAlertToDiscord

Function sendAlertToDiscord

src/utils/sendMessageToDiscord.ts:40–47  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

38}
39
40export function sendAlertToDiscord(message: string) {
41 if (isDev) {
42 return
43 }
44 if (DISCORD_ALERT_URL) {
45 return fetchPost(DISCORD_ALERT_URL, { content: message }).catch(noop)
46 }
47}

Callers 1

executeFunction · 0.90

Calls 1

fetchPostFunction · 0.90

Tested by

no test coverage detected