zerobot-plugin-mcqq

command module
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2026 License: MIT Imports: 10 Imported by: 0

README

zerobot-plugin-mcqq

ZeroBot-Plugin-MCQQ

mcqqZeroBot 插件实现

  • 支持 QQ 群
  • 支持鹊桥 Protocol V2

使用

  • 克隆本项目

  • 复制 config.example.ymlconfig.yml,并按注释修改配置

  • 启动 go run . -config config.yml

  • 编译后启动

    go build -o mcqq
    ./mcqq -config config.yml
    

    Windows:

    go build -o mcqq.exe
    .\mcqq.exe -config config.yml
    

对接 Minecraft 服务器

配套 插件/模组 请前往 鹊桥 仓库查看详情

当前版本按 鹊桥 Protocol V2 对接:

  • QQ 群消息通过 broadcast API 广播到 Minecraft 服务器
  • Minecraft 事件通过 WebSocket JSON 推送到本插件
  • WebSocket Header 默认使用 x-client-origin: zerobot
  • WebSocket Client 支持断线自动重连,可在 config.yml 中配置 reconnect_intervalreconnect_max_times

功能

  • 推送消息列表

    • 服务器 -> QQ
      • 加入 / 离开 服务器消息
      • 玩家聊天信息
      • 玩家命令信息
      • 玩家死亡信息(死亡信息为英文,原版端不适用,用正则匹配死亡信息是大工程!)
      • 玩家成就信息
    • QQ -> 服务器
      • 指令
      • 群员聊天文本
      • 图片、视频等内容转换为可点击在浏览器打开的 [图片][视频]
      • (可选功能)借助 @kitUIN/ChatImage 直接在游戏内显示图片

暂未实现从 QQ 主动调用 RconTitleActionBar、服务器状态查询等内容,欢迎 PR

特别感谢

其他项目

贡献与支持

觉得好用可以给这个项目点个 Star 或者去 爱发电 投喂我。

有意见或者建议也欢迎提交 IssuesPull requests

许可证

本项目使用 MIT 作为开源许可证。

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL