Skip to content
New issue

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

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

Already on GitHub? # to your account

Allow modifying the Discord title #508

Open
binaryn3xus opened this issue Jun 24, 2023 · 2 comments
Open

Allow modifying the Discord title #508

binaryn3xus opened this issue Jun 24, 2023 · 2 comments
Labels
area/alerting Related to alerting feature New feature or request good first issue Good for newcomers

Comments

@binaryn3xus
Copy link

Describe the feature request

Currently it looks like the Gatus title is hard-coded. Source

It would be nice to be able to change that title since in mobile notifications sometimes, it shows the text of the emoji icon.

Its possible that there is more to what I saw in the source code but I'm not vert familiar with 'go' language.

Why do you personally want this feature to be implemented?

I use a third party tool that takes in Discord messages. So when I get an alert, I see something like the following:

Gatus:
:helmet_with_white_cross: Gatus

An alert for home-assistant has been resolved after passing successfully 5 time(s) in a row:

healthcheck failed

Condition results
:white_check_mark: - [STATUS] == 200

It would be nice if I could edit those values to not include the emoji. Thanks!

How long have you been using this project?

No response

Additional information

No response

@TwiN TwiN added good first issue Good for newcomers area/alerting Related to alerting labels Jul 9, 2023
@TwiN
Copy link
Owner

TwiN commented Jul 9, 2023

It would be nice if I could edit those values to not include the emoji. Thanks!

In the example you gave, there were two emojis - one in the title (:helmet_with_white_cross:) and one in the body (:white_check_mark:).

Given the title of the pull request, can I assume that you're only concerned by :helmet_with_white_cross:? (I do remember seeing the same situation you mentioned wrt notifications on mobile sometimes showing text instead of the emoji)

If so, something I'd be curious about before we take the make-the-alert-title-modifiable route is whether replacing :helmet_with_white_cross: by ⛑️ (actual emoji unicode) on

Title: ":helmet_with_white_cross: Gatus",
would cause the notification to display properly.

@binaryn3xus
Copy link
Author

Its possible. I know I am an likely an edge case on this probably so I will defer to your judgement. I'm also willing to test a dev build for you if you would like.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
area/alerting Related to alerting feature New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants