Browse Source

refactor: improve formatting of server IP value in Discord alert

The code changes in this commit refactor the formatting of the server IP value in the Discord alert. The value is now enclosed in single quotes for better readability.
pull/4345/head
Daniel Gibbs 2 years ago
parent
commit
b1270055bd
No known key found for this signature in database GPG Key ID: 2076B128385E8C55
  1. 4
      lgsm/modules/alert_discord.sh

4
lgsm/modules/alert_discord.sh

@ -36,7 +36,7 @@ jsoninfo=$(
}, },
{ {
"name": "Server IP", "name": "Server IP",
"value": "${alertip}:${port}", "value": "\`${alertip}:${port}\`",
"inline": true "inline": true
}, },
{ {
@ -92,7 +92,7 @@ jsonnoinfo=$(
}, },
{ {
"name": "Server IP", "name": "Server IP",
"value": "${alertip}:${port}", "value": "\`${alertip}:${port}\`",
"inline": true "inline": true
}, },
{ {

Loading…
Cancel
Save