Add WeWork XiaoAi TTS bot - WeChat Work long connection bridge

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>
This commit is contained in:
2026-05-03 13:52:04 +08:00
commit c7b8b01fe2
17 changed files with 762 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
FROM python:3.11-slim
WORKDIR /app
# Install system deps (none needed for this project, just pip)
RUN pip install --no-cache-dir \
aiohttp>=3.9.0 \
python-dotenv>=1.0.0 \
miservice_fork>=2.9.0
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app/ app/
COPY config.py run.py ./
# Don't COPY .env or .mi.token — they're mounted at runtime
CMD ["python", "run.py"]