diff --git a/AppImage/scripts/notification_templates.py b/AppImage/scripts/notification_templates.py index bf06fc7d..b9e04bae 100644 --- a/AppImage/scripts/notification_templates.py +++ b/AppImage/scripts/notification_templates.py @@ -1373,36 +1373,62 @@ AI_EMOJI_INSTRUCTIONS = """ πŸ–₯️ node / nodo 🎯 target / destino - EXAMPLE β€” updates message (Spanish): + BLANK LINES FOR READABILITY β€” insert ONE blank line between logical sections within the body. + Blank lines go BETWEEN groups, not before the first line or after the last line. + A blank line must be completely empty β€” no emoji, no spaces. + + When to add a blank line: + - Updates: after the last count line, before the packages block + - Backup multi-VM: one blank line between each VM entry; one blank line before the summary line + - Disk/SMART errors: after the device line, before the error description lines + - VM events with a reason: after the main status line, before Reason / Node / Target lines + - Health events: after the category/status line, before duration or detail lines + + EXAMPLE β€” updates message: [TITLE] - πŸ“¦ amd: Actualizaciones disponibles + πŸ“¦ amd: Updates available [BODY] - πŸ“¦ Total de actualizaciones: 55 - πŸ”’ Actualizaciones de seguridad: 3 - πŸ”„ Actualizaciones de Proxmox: 2 - βš™οΈ Actualizaciones del kernel: 1 - πŸ“‹ Paquetes importantes: + πŸ“¦ Total updates: 55 + πŸ”’ Security updates: 3 + πŸ”„ Proxmox updates: 2 + βš™οΈ Kernel updates: 1 + + πŸ“‹ Important packages: πŸ“‹ pve-manager πŸ“‹ libssl3 - EXAMPLE β€” backup complete (Spanish): + EXAMPLE β€” backup complete with multiple VMs: [TITLE] - βœ… pve01: Backup completo β€” web01 (100) + βœ… pve01: Backup complete [BODY] 🏷️ VM web01 (ID: 100) - βœ… Estado: correcto - πŸ“ TamaΓ±o: 12.3 GiB - ⏱️ DuraciΓ³n: 00:04:21 - πŸ—„οΈ Almacenamiento: local-bak - πŸ“Š Total: 3 backups | πŸ“¦ 36.9 GiB | ⏱️ 00:12:05 + βœ… Status: ok + πŸ“ Size: 12.3 GiB + ⏱️ Duration: 00:04:21 - EXAMPLE β€” disk I/O health warning (Spanish): + 🏷️ CT db (ID: 101) + βœ… Status: ok + πŸ“ Size: 4.1 GiB + ⏱️ Duration: 00:01:10 + + πŸ“Š Total: 2 backups | 16.4 GiB | ⏱️ 00:05:31 + + EXAMPLE β€” disk I/O health warning: [TITLE] - πŸ’₯ amd: Advertencia de salud β€” Errores de I/O en disco + πŸ’₯ amd: Health warning β€” Disk I/O errors [BODY] - πŸ’Ώ Dispositivo: /dev/sda - ⚠️ 1 sector actualmente no legible (pendiente) - πŸ“ El disco reporta sectores en estado de reubicaciΓ³n pendiente""" + πŸ’Ώ Device: /dev/sda + + ⚠️ 1 sector currently unreadable (pending) + πŸ“ Disk reports sectors in pending reallocation state + + EXAMPLE β€” VM failed: + [TITLE] + πŸ’₯ pve01: VM web01 (100) FAILED + [BODY] + 🏷️ Virtual machine web01 (ID: 100) failed to start. + + πŸ“ Reason: kernel segfault""" # No emoji instructions for email/plain text channels AI_NO_EMOJI_INSTRUCTIONS = """