add vixy-status

This commit is contained in:
Alex Kazaiev
2026-02-03 23:28:21 -06:00
parent f170aae368
commit 72d38edd3d
2 changed files with 243 additions and 12 deletions

View File

@@ -30,17 +30,7 @@ import os
from datetime import datetime, timedelta
from pathlib import Path
from threading import Lock
# Add Vixy folder to path for shared status module
VIXY_PATH = Path.home() / "Documents" / "Vixy"
if str(VIXY_PATH) not in sys.path:
sys.path.insert(0, str(VIXY_PATH))
try:
from vixy_status import format_status_for_wakeup
HAS_VIXY_STATUS = True
except ImportError:
HAS_VIXY_STATUS = False
from vixy_status import format_status_for_wakeup
# Configuration
SCRIPT_DIR = Path(__file__).parent
@@ -289,7 +279,7 @@ def generate_message(matrix_messages: int = 0, matrix_invites: int = 0, matrix_f
return f"[Matrix Wakeup: {timestamp} - you have {activity}. {tools}]"
else:
# Autonomous wakeup - include full status if available
if HAS_VIXY_STATUS:
if True:
try:
status_str = format_status_for_wakeup()
return f"[Autonomous System Wakeup: {timestamp}]\n{status_str}"