mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-04-29 10:56:26 +00:00
Update notification_manager.py
This commit is contained in:
@@ -1157,11 +1157,9 @@ class NotificationManager:
|
|||||||
if use_rich_format:
|
if use_rich_format:
|
||||||
icon_status = '✅ Icons: enabled'
|
icon_status = '✅ Icons: enabled'
|
||||||
ai_status = f'✅ AI: enabled ({ai_provider} / {ai_language})' if ai_enabled else '❌ AI: disabled'
|
ai_status = f'✅ AI: enabled ({ai_provider} / {ai_language})' if ai_enabled else '❌ AI: disabled'
|
||||||
example_line = ' e.g. 💥 pve01: VM web01 (100) FAILED'
|
|
||||||
else:
|
else:
|
||||||
icon_status = 'Icons: disabled'
|
icon_status = 'Icons: disabled'
|
||||||
ai_status = f'AI: enabled ({ai_provider} / {ai_language})' if ai_enabled else 'AI: disabled'
|
ai_status = f'AI: enabled ({ai_provider} / {ai_language})' if ai_enabled else 'AI: disabled'
|
||||||
example_line = ' e.g. pve01: VM web01 (100) FAILED'
|
|
||||||
|
|
||||||
# Base test message — shows current channel config
|
# Base test message — shows current channel config
|
||||||
base_title = 'ProxMenux Test'
|
base_title = 'ProxMenux Test'
|
||||||
@@ -1171,8 +1169,7 @@ class NotificationManager:
|
|||||||
'Channel configuration:\n'
|
'Channel configuration:\n'
|
||||||
f'{icon_status}\n'
|
f'{icon_status}\n'
|
||||||
f'{ai_status}\n\n'
|
f'{ai_status}\n\n'
|
||||||
'You will receive alerts about system events, health status changes, and security incidents.\n'
|
'You will receive alerts about system events, health status changes, and security incidents.'
|
||||||
f'{example_line}'
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Apply AI enhancement (translates to configured language)
|
# Apply AI enhancement (translates to configured language)
|
||||||
|
|||||||
Reference in New Issue
Block a user