初始提交:识流 AI 助手项目

微信自动回复机器人,基于截图+OCR识别消息,支持关键词规则和 AI(OpenAI/DeepSeek/Dify)自动回复。
技术栈:PySide6 + Flask + Vue3 + RapidOCR + SQLite

注:OCR大模型文件(.onnx / .pdiparams)不纳入版本控制,需单独下载。

🤖 Generated with [Qoder][https://qoder.com]
This commit is contained in:
figmar
2026-05-30 14:57:45 +08:00
commit 81115dc23d
129 changed files with 56398 additions and 0 deletions

31
legacy/run_all.py Normal file
View File

@@ -0,0 +1,31 @@
import os
import time
import threading
import webbrowser
import py_backend
from wechat_multi_chat_bot import WechatMultiChatBot
HOST = os.getenv("APP_HOST", "127.0.0.1")
PORT = int(os.getenv("APP_PORT", "5000"))
OPEN_BROWSER = os.getenv("OPEN_BROWSER", "1") == "1"
def run_backend():
py_backend.start_backend(host=HOST, port=PORT)
def run_bot():
bot = WechatMultiChatBot()
bot.run_forever()
if __name__ == "__main__":
backend_thread = threading.Thread(target=run_backend, daemon=True)
backend_thread.start()
time.sleep(1.5)
if OPEN_BROWSER:
webbrowser.open(f"http://{HOST}:{PORT}/admin.html")
run_bot()