AQQBot

另一个基于Onebot v11协议开发的QQ机器人插件。

资源图片
# AQQBot
简体中文版 ## 介绍 AQQBot 是一个基于 Onebot v11 协议开发的 QQ 群与服务器互联的插件,可以让用户通过 QQ 群进行许多操作(例如绑定游戏账号、查询服务器状态)。 ## 功能 - **账户绑定**: 玩家需要在 QQ 群中绑定账号后才能进入服务器 - **信息查询**: 玩家可以在 QQ 群发送特定命令来查询账号的游戏状态(如步行距离),同时也可以查询服务器状态(如服务器 TPS) - **群服互联**: 玩家在 QQ 群发送的消息会被转发到服务器上,玩家在服务器发送的消息也会被转发到 QQ 群上 ## 特点 - **轻量**: 插件本体仅 600KB不到 - **高度定制化**: 你可以自由开关插件所内置的各个功能,只需要通过编辑配置文件 - **强大兼容性**: 插件支持基于 Spigot/Paper 的所有服务端及 Velocity ## 安装方式 1. 安装一个基于 Onebot v11 协议的后端 (如 Lagrange.OneBot, LLOneBot) 2. 开启这些后端的正向 WS(Websocket) 转发功能,记住其中的端口号 3. 安装插件,开启服务器后编辑 bot.yml 文件: ```yaml # 正向 Websocket 配置 ws: # 主机地址 host: "localhost" # 端口 port: 3001 # 启用插件的群号 groups: - "114514" ``` - 将此处的 `ws.host` (主机地址) 改为你后端所在服务器的地址 (若你的后端和服务器在同一服务器内,不需要进行修改) - 将此处的 `ws.port` (主机端口号) 改为你刚刚记住的端口号 - 将此处的 `groups` 中的 `114514` 改为你要开启机器人功能的 QQ 群号 最后,重新启动服务器,若没有出现报错则代表连接成功 ## 协议 本插件基于 LGPL-2.1 协议开源,请遵守该协议,最终解释权归 *alazeprt* 所有
## Description AQQBot is a plugin for interconnecting QQ groups and servers based on the Onebot v11 protocol, which allows users to perform many operations through QQ groups (e.g., binding game accounts, querying server status). ## Function - **Account Binding**: Players need to bind their accounts in the QQ group before they can enter the server - **Information query**: Players can send specific commands in the QQ group to query the account's game status (e.g. walking distance), and also query the server status (e.g. server tps) - **Chat interconnection**: messages sent by players in the QQ group will be forwarded to the server, and at the same time, messages sent by players in the server will be forwarded to the QQ group as well ## Features - **Lightweight**: plugin size is only less than 600kb - **Highly customizable**: you can freely switch on and off the various functions built into the plugin, just by editing the configuration file - **Strong compatibility**: the plugin supports all servers based on Spigot/Paper and Velocity ## Installation 1. install a backend based on the Onebot v11 protocol (e.g. Lagrange.OneBot, LLOneBot) 2. Enable forward WS (Websocket) forwarding on these backends and memorize the port numbers. 3. Install the plugin, turn on the server and edit the bot.yml file: ```yaml # Positive Websocket Configuration ws: # host address host: "localhost" # port port: 3001 # Plugin-enabled group number groups: - "114514" ``` - Change `ws.host` (host address) here to the address of the server where your backend is located (if your backend and server are on the same server, you don't need to change it). - Change `ws.port` here to the port number you just memorized. - Change `114514` in `groups` here to the QQ group number you want to enable bots. Next, Restart the server, if there is no error and warning, the connection is successful. ## License This plugin is open source based on LGPL-2.1 agreement, please abide by the agreement, the final interpretation right belongs to *alazeprt* all rights reserved.