Skip to content

V1.2.5更新#35

Merged
LBY123165 merged 11 commits into
easybot-team:mainfrom
LBY123165:main
Jun 14, 2026
Merged

V1.2.5更新#35
LBY123165 merged 11 commits into
easybot-team:mainfrom
LBY123165:main

Conversation

@LBY123165

Copy link
Copy Markdown
Member

功能新增:

  • 图片上传功能 (chat_image)
  • RCON 自动配置 (rcon_config)
  • 玩家事件处理 (player_events)
  • 聊天同步 (chat_sync)
  • 多语言支持 (lang/)
  • 玩家数据 API (api/player_data)

改进:

  • 服务器处理器可配置 (handler.enabled)
  • 消息同步重构与优化
  • 前缀处理器重构
  • 主程序结构优化
  • README 文档重写

CI/CD:

  • 添加 pytest 集成测试
  • 代码质量检查结果输出到 Step Summary
  • build-and-release 触发条件改为 v* tag 推送

功能新增:
  - 图片上传功能 (chat_image)
  - RCON 自动配置 (rcon_config)
  - 玩家事件处理 (player_events)
  - 聊天同步 (chat_sync)
  - 多语言支持 (lang/)
  - 玩家数据 API (api/player_data)

  改进:
  - 服务器处理器可配置 (handler.enabled)
  - 消息同步重构与优化
  - 前缀处理器重构
  - 主程序结构优化
  - README 文档重写

  CI/CD:
  - 添加 pytest 集成测试
  - 代码质量检查结果输出到 Step Summary
  - build-and-release 触发条件改为 v* tag 推送
@LBY123165 LBY123165 self-assigned this Jun 10, 2026
@Ftimever Ftimever self-requested a review June 13, 2026 00:31

@Ftimever Ftimever left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这是明面上能看到的问题

online_mode = str(online_mode).lower().strip() == "true"

# 检测 SkinsRestorer 插件
plugins_dir = os.path.join(working_directory, "plugins")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这指针对bukkit类插件服务器,不能包括MOD服务器,这里需要修改

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

所以我为什么不这样

  • Mod 服(Forge/Fabric):没有 SkinsRestorer 插件 → get_skins_restorer() 返回 False → 跳过 _get_sr_skin() → 走
    mineskin.eu / mc-heads.net 逻辑
    • Bukkit 服:检测到 SkinsRestorer → 先从 SR 数据库读皮肤 → 读到就用,读不到 fallback 到 mineskin.eu

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mod版也有这种东西

# 非正版: 使用 mc-heads.net 头像
if uuid:
return f"https://mc-heads.net/skin/{uuid}"
return ""

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ftimever Ftimever left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

使用构建的1.2.5会出现RuntimeWarning: coroutine 'EasyBotWsClient.send' was never awaited

@Ftimever

Copy link
Copy Markdown
Member

使用构建的1.2.5会出现RuntimeWarning: coroutine 'EasyBotWsClient.send' was never awaited

这是一个 Python 异步编程的错误。在代码的某处(很可能在你之前提到的 exec_command.py 或相关逻辑中),调用了 EasyBotWsClient.send(...) 方法,但没有使用 await 关键字。因为 send 是一个异步函数(async def),如果不加 await,它只会返回一个协程对象而不会真正执行网络发送操作。

@LBY123165 LBY123165 linked an issue Jun 13, 2026 that may be closed by this pull request
  - 新增 READ_NBT RPC: 支持读取玩家背包/进度/统计数据,支持在线玩家 inventory 解析
  - 命令执行重构: MCDR 命令 (!! 开头) 直接通过 server.execute() 执行,不再依赖 RCON
  - PAPI 改进: 自动检测 Bukkit 服务端类型,非 Bukkit 支持 player_name/uuid/ip 本地替换
  - 新增 SkinsRestorer 数据库读取皮肤 URL
  - ExecContext.callback 改为 async,适配异步 WebSocket 发送
  - 上报玩家信息时附带 skin_url 和 bedrock 字段
  - 移除已废弃的图片服务器和 !!say 命令相关代码
  - 更新 README 文档

@Ftimever Ftimever left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PAPI部分

Comment thread easybot_mcdr/impl/get_server_info.py
Comment thread easybot_mcdr/impl/get_server_info.py

@Ftimever Ftimever left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[MCDR] [22:58:57] [AsyncTaskExecutor/INFO] [easybot_mcdr]: [EasyBot] 5秒后尝试重连 (第29次/共30次)
[MCDR] [22:59:04] [AsyncTaskExecutor/WARNING] [easybot_mcdr]: [EasyBot] 连接异常: OSError

ws连接报错显示异常?可正常连接

@LBY123165

Copy link
Copy Markdown
Member Author
[MCDR] [22:58:57] [AsyncTaskExecutor/INFO] [easybot_mcdr]: [EasyBot] 5秒后尝试重连 (第29次/共30次)
[MCDR] [22:59:04] [AsyncTaskExecutor/WARNING] [easybot_mcdr]: [EasyBot] 连接异常: OSError

ws连接报错显示异常?可正常连接

检查一下你自己的设置,我这一个测试服务器和两个正式服务器都没有任何问题

@Ftimever

Copy link
Copy Markdown
Member

使用构建的1.2.5会出现RuntimeWarning: coroutine 'EasyBotWsClient.send' was never awaited
已解决

@Ftimever Ftimever left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

除了一些细枝末节的小优化我认为可以合并了

rcon-auto的log可以优化

@Ftimever

Copy link
Copy Markdown
Member

哦对了,那个默认皮肤

@LBY123165

Copy link
Copy Markdown
Member Author

哦对了,那个默认皮肤

never fix

@LBY123165

Copy link
Copy Markdown
Member Author

除了一些细枝末节的小优化我认为可以合并了

rcon-auto的log可以优化

还有背包预览没做

@Ftimever

Copy link
Copy Markdown
Member

除了一些细枝末节的小优化我认为可以合并了
rcon-auto的log可以优化

还有背包预览没做

行的,这种功能性的你自查直接得了)能跑就行)

@LBY123165 LBY123165 merged commit ecc99e0 into easybot-team:main Jun 14, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug/Critical] Improper handler processing 关于mcdr端用q群执行命令的问题 关于MCDR端的Rcon设置问题

2 participants