-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 1KV online/offline notification setting to the Telegram bot setti…
…ngs menu. Correct the 1KV online status change notification generator logic.
- Loading branch information
Showing
8 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<strong>{{ validator_display }}</strong> | ||
🆘 was found to be <strong>offline</strong> at the end of the session{% if notification_period_type %} in the last {% if notification_period > 1 %}{{ notification_period }} {% endif %}{{ notification_period_type }}{% if notification_period > 1 %}s{% endif %}{% endif %}! | ||
This is going to cause the involuntary chilling of the validator. | ||
This is going to cause the involuntary chilling of the validator if it hasn't been chilled already. | ||
You may view the corresponding on-chain event <a href="https://{{ chain }}.subscan.io/block/{{ block_hash }}?tab=event">here</a>. |
2 changes: 1 addition & 1 deletion
2
_template/push_notification/chain_validator_offline_offence.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{{ validator_display }} | ||
🆘 was found to be offline at the end of the session{% if notification_period_type %} in the last {% if notification_period > 1 %}{{ notification_period }} {% endif %}{{ notification_period_type }}{% if notification_period > 1 %}s{% endif %}{% endif %}! | ||
This is going to cause the involuntary chilling of the validator. | ||
This is going to cause the involuntary chilling of the validator if it hasn't been chilled already. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<strong>{{ validator_display }}</strong> | ||
🆘 was found to be <strong>offline</strong> at the end of the session{% if notification_period_type %} in the last {% if notification_period > 1 %}{{ notification_period }} {% endif %}{{ notification_period_type }}{% if notification_period > 1 %}s{% endif %}{% endif %}! | ||
This is going to cause the involuntary chilling of the validator. | ||
This is going to cause the involuntary chilling of the validator if it hasn't been chilled already. | ||
You may view the corresponding on-chain event <a href="https://{{ chain }}.subscan.io/block/{{ block_hash }}?tab=event">here</a>. |
1 change: 1 addition & 0 deletions
1
_template/telegram/dialog/settings_item_onekv_online_status_change.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{% if is_on %}🟢{% else %}⚪️{% endif %} Online / Offline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters