-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
35 lines (28 loc) · 1.29 KB
/
Copy pathmain.py
File metadata and controls
35 lines (28 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import logging
# ==========================================
# LOG NOISE SUPPRESSION
# Silences overly verbose third-party libraries
# added for the new features (Scheduler, Reconnect, Vision, Mic)
# ==========================================
logging.getLogger("apscheduler").setLevel(logging.WARNING)
logging.getLogger("apscheduler.executors.default").setLevel(logging.ERROR)
logging.getLogger("urllib3").setLevel(logging.ERROR)
logging.getLogger("httpx").setLevel(logging.ERROR)
logging.getLogger("PIL").setLevel(logging.WARNING)
logging.getLogger("telegram").setLevel(logging.ERROR) # Silences PTB internal heartbeat logs
logging.getLogger("sounddevice").setLevel(logging.WARNING) # Silences PortAudio initialization logs
from OmniCtrl_Agent.telegram_interface import TelegramPCInterface
def main():
"""Entry point for the Advanced PC Control Agent"""
# Set up clean, readable logging for OUR application only
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
datefmt='%H:%M:%S' # Cleaner timestamp format
)
print("Initializing PC Control Agent...")
bot = TelegramPCInterface()
# Starts the infinite loop with autonomous self-reconnection
bot.run()
if __name__ == "__main__":
main()