c7b8b01fe2
Receives messages from WeChat Work bot via WebSocket long connection and speaks them through XiaoAi smart speaker TTS. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
12 lines
264 B
Python
12 lines
264 B
Python
import asyncio
|
|
import logging
|
|
|
|
logging.basicConfig(
|
|
level=logging.INFO,
|
|
format="%(asctime)s [%(levelname)s] %(name)s: %(message)s",
|
|
)
|
|
|
|
if __name__ == "__main__":
|
|
from app.services.ws_client import connect_and_serve
|
|
asyncio.run(connect_and_serve())
|