Compare commits

...

3 Commits

Author SHA1 Message Date
JianFeeeee
894a02ab05 modified: packup.bat 2025-08-15 15:21:58 +08:00
JianFeeeee
5f0dbd5e1e Merge branch 'main' of https://jianfgit.xyz/jianf/chatrebot_mcrcon_plug 2025-08-15 15:15:45 +08:00
JianFeeeee
518d39ad08 modified: src/process.py 2025-08-15 15:15:37 +08:00
2 changed files with 6 additions and 6 deletions

View File

@ -1,21 +1,21 @@
@echo off
REM 依次运行dependence.py和package.py的批处理脚本
echo 正在运行依赖安装脚本...
echo install dependence...
python dependence.py
if %ERRORLEVEL% neq 0 (
echo 运行dependence.py失败! 错误码: %ERRORLEVEL%
echo error %ERRORLEVEL% fail to install dependence
pause
exit /b %ERRORLEVEL%
)
echo 正在运行打包脚本...
echo packing up...
python package.py
if %ERRORLEVEL% neq 0 (
echo 运行package.py失败! 错误码: %ERRORLEVEL%
echo %ERRORLEVEL% fail to packup
pause
exit /b %ERRORLEVEL%
)
echo 所有脚本执行完毕!
echo all done
pause

View File

@ -30,7 +30,7 @@ class Mc_rcon(BasePlugin):
gid = config.get("group").get("id")
config = config.get("mc_rcon")
if self.ctx.group is None:
return "ok"
return None
print(self.ctx.group.group_id)
if self.ctx.group.group_id == gid:#转发群消息至 Minecraft
if "CQ:image" in self.ctx.raw_message: