初始提交:QQ 群入群验证机器人
基于 qqbotsdk-py 的入群验证:进群发按钮验证码、完成前禁言、 超时踢出(11253 时兜底长期禁言)、乱点他人按钮处罚、状态持久化 与重启恢复。38 个单元/集成测试。
This commit is contained in:
commit
755013b9db
17 files changed
+1864
No files matched your search
@@ -0,0 +1,29 @@
|
||||
@echo off
|
||||
rem AuthBot launcher - ASCII only: cmd parses batch files with the ANSI
|
||||
rem codepage, so non-ASCII text here gets mangled on Chinese Windows.
|
||||
title AuthBot - QQ Group Verify Bot
|
||||
cd /d "%~dp0"
|
||||
|
||||
if not exist ".venv\Scripts\python.exe" (
|
||||
echo [AuthBot] venv not found. Creating it and installing deps...
|
||||
python -m venv .venv
|
||||
if errorlevel 1 (
|
||||
echo [AuthBot] Failed to create venv. Install Python 3.12+ and add it to PATH.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
".venv\Scripts\python.exe" -m pip install -r requirements.txt
|
||||
)
|
||||
|
||||
if not exist ".env" (
|
||||
echo [AuthBot] .env missing. Copy .env.example to .env and fill APPID / APPSECRET.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo [AuthBot] starting...
|
||||
".venv\Scripts\python.exe" main.py
|
||||
|
||||
echo.
|
||||
echo [AuthBot] exited. If this was unexpected, check the log above.
|
||||
pause
|
||||
Reference in new issue
Block a user