📖 介绍
本插件可以帮助你监控多个 Minecraft 服务器的状态,并通过 QQ 机器人发送提醒,并且无需额外装任何插件或模组。目前已经实现的功能如下:
/mc或/minecraft指令,查看服务器状态。- 监控多个 Minecraft 服务器的状态,并且发送提醒。
💿 安装
你可以使用 nb plugin install nonebot_plugin_mc_watcher 来安装此插件。
⚙️ 配置
在 NoneBot2 项目的.env文件中添加下表中的必填配置
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| minecraft_servers | 是 | 无 | 要监控的服务器名称和对应的地址(一个字典) |
| minecraft_update_interval | 否 | 30 | 向 Minecraft 服务器发送 Motd 请求的间隔 |
| minecraft_broadcast_server | 否 | True | 是否广播服务器开启/关闭消息 |
| minecraft_broadcast_player | 否 | False | 是否广播服务器玩家离开/加入消息 |
| minecraft_broadcast_groups | 否 | [] | 广播的 QQ 群号列表(若为空则上面的两个不生效) |
🎉 使用
可以在任意群里发送 /mc 或 /minecraft 指令来查看所有服务器状态。
指令表
| 名称 | 权限 | 说明 |
|---|---|---|
| mc / minecraft | 无 | 查看所有的服务器状态 |
🙏 鸣谢
Metadata
Release files for nonebot_plugin_mc_watcher 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nonebot_plugin_mc_watcher-1.0.6.tar.gz | 16.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nonebot_plugin_mc_watcher-1.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.2 kB
Release files / nonebot_plugin_mc_watcher-1.0.6.tar.gz
| Download URL | nonebot_plugin_mc_watcher-1.0.6.tar.gz |
|---|---|
| Size | 16.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af0e788249fa79fa92053dc186d9ea169374a41c1fb8602a3aaec4567e1bd20a
|
|
BLAKE2b-256 checksum How to use checksums |
a225a62b8d3602874fd89a64f969604ae577c4bf31186821b30fa90c75775e42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.13.1 Darwin/23.6.0
|
Release files / nonebot_plugin_mc_watcher-1.0.6-py3-none-any.whl
| Download URL | nonebot_plugin_mc_watcher-1.0.6-py3-none-any.whl |
|---|---|
| Size | 18.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d61e9bdf2b865e3133d0cb055e012c87ba517b4f922a4ecb91ee1e50a9f71e68
|
|
BLAKE2b-256 checksum How to use checksums |
df72086ac2bc36c5fd0af6810db7ea72043162ff378be981751a360f5dc4e4de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.13.1 Darwin/23.6.0
|