Announcement for when server maintenance is finished

This commit is contained in:
2023-04-22 21:10:41 -04:00
parent b62e8f6a24
commit 93db9c45a1
2 changed files with 21 additions and 0 deletions

View File

@ -1739,6 +1739,14 @@ script:
] | random }}
{% endmacro %}
{% macro server_maintenance_done() %}
{{ [
'Home assistant has returned to service. Nerd Home Incorporated appreciates your patience.',
'All services are operational again. We appreciate your business.',
'Mischief managed. Server back online.',
] | random }}
{% endmacro %}
{# a macro that removes all newline characters, empty spaces, and returns formatted text. Also replaces all Underscores with Spaces #}
{%- macro cleanup(data) -%}
@ -1847,6 +1855,10 @@ script:
{% if call_server_maintenance == 1 %}
{{ server_maintenance() }}
{% endif %}
{% if call_server_maintenance_done == 1 %}
{{ server_maintenance_done() }}
{% endif %}
{%- endmacro -%}