Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change discord message? #2109

Closed
2 tasks done
Ultra-Meloncrafter opened this issue Sep 19, 2022 · 7 comments
Closed
2 tasks done

Change discord message? #2109

Ultra-Meloncrafter opened this issue Sep 19, 2022 · 7 comments

Comments

@Ultra-Meloncrafter
Copy link

Ultra-Meloncrafter commented Sep 19, 2022

⚠️ Please verify that this bug has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

📝 Describe your problem

Is there a way to change the discord message, because when i tried it, it didn't change much

🐻 Uptime-Kuma Version

1.18.0

💻 Operating System and Arch

Debian 10

🌐 Browser

Opera GX Latest

🐋 Docker Version

No response

🟩 NodeJS Version

v16.17.0

@Alex2021cyberhuman
Copy link

Hello. I found lines where discord notification provider setting title to discord embeded object
I think it will help you or some one else to implement custom messages
Tell me if i wrong.

@Ultra-Meloncrafter
Copy link
Author

i already changed that and restarted uptime-kuma, but it didn't change anything

@Computroniks
Copy link
Contributor

Did you only edit the title or all of the lines?

title: "❌ Your service " + monitorJSON["name"] + " went down. ❌",
color: 16711680,
timestamp: heartbeatJSON["time"],
fields: [
{
name: "Service Name",
value: monitorJSON["name"],
},
{
name: monitorJSON["type"] === "push" ? "Service Type" : "Service URL",
value: monitorJSON["type"] === "push" ? "Heartbeat" : address,
},
{
name: "Time (UTC)",
value: heartbeatJSON["time"],
},
{
name: "Error",
value: heartbeatJSON["msg"],
},
],
}],
};

@github-actions
Copy link

We are clearing up our old issues and your ticket has been open for 3 months with no activity. Remove stale label or comment or this will be closed in 2 days.

@github-actions github-actions bot added the Stale label Dec 20, 2022
@github-actions
Copy link

This issue was closed because it has been stalled for 2 days with no activity.

@Hi-ImKyle
Copy link

A more concrete way of changing the sent embed would be nice to have. Even if it's just a text area that accepts an embed in json with say replacement words like %MONITOR_NAME% or %MONITOR_STATUS%

@CommanderStorm
Copy link
Collaborator

Please subscribe to this issue instead #1388
I think adding this would require #646 first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants