add discord mentions

This commit is contained in:
GroovieGermanikus 2024-06-07 10:25:15 +02:00
parent b5a81eca9d
commit 292b8f7770
No known key found for this signature in database
GPG Key ID: 5B6EB831A5CD2015
1 changed files with 10 additions and 1 deletions

View File

@ -188,9 +188,18 @@ fn create_discord_message(
let hostname_executed = gethostname();
let content = if success {
format!("OK rpc node check for <{}>", rpcnode_label)
} else {
let userid_groovie = 933275947124273182u128;
let role_id_alerts_mangolana = 1100752577307619368u128;
let mentions = format!("<@{}> <@&{}>", userid_groovie, role_id_alerts_mangolana);
format!("Failed rpc node check for <{}> {}", rpcnode_label, mentions)
};
let body = json! {
{
"content": format!("RPC Node Check for <{}>", rpcnode_label),
"content": content,
"description": format!("executed on {}", hostname_executed.to_string_lossy()),
"username": "RPC Node Check",
"embeds": [