Skip to main content

Nonebot2查询MC服务器在线信息插件

Project description

NoneBotPluginLogo

nonebot_plugin_mc_server_status

✨ Nonebot2查询MC服务器在线信息插件 ✨

license nonebot2 python

开发者信息

  • nikiss,个人QQ 1299577815,插件反馈QQ群 226462236,插件有问题到群里反馈响应更快哦

简介

使用mcstatus库,支持Java和Bedrock服务器的服务器查询。

安装

使用nb-cli安装

nb plugin install nonebot_plugin_mc_server_status

或者
直接把插件clone下来放进去plugins文件夹,记得把依赖装上 pip install mcstatus

使用

添加了服务器信息后,会在bot根目录下的data目录创建一个mc_status_data.json文件,用于存储插件信息
在bot对应的.env文件修改

# 管理员的QQ号(别问我为什么要另外写)
mc_status_admin_qqnum = [1234, 5678, 6666]

# 可选配置
# 机器人的QQ号列表,如果有多个bot连接,会按照填写的list,左边的机器人QQ优先级最高 1234 > 5678 > 6666,会自动切换
# 如果不填该配置则由第一个连上的bot响应
mc_status_bot_qqnum_list = [1234, 5678, 6666]

插件命令

指令 说明
信息 所有人都能使用,查看当前群添加的服务器状态,需要加命令前缀,默认/
信息数据 查看已添加的群和服务器信息,bot超级管理员用,需要加命令前缀,默认/
添加服务器 字面意思,bot超级管理员用,一个群可以添加多个服务器
删除服务器 字面意思,bot超级管理员用

更新日志

2026/2/14 [v0.3.2]

  • 增加对ipv6地址支持

2024/8/18 [v0.3.1]

  • 管理员配置支持多个

2024/7/30 [v0.3.0]

  • 增加匿名玩家的判断

2024/6/25 [v0.2.20]

  • 更新插件元数据

2023/2/11 [v0.2.9]

  • 信息和信息数据的增加命令前缀

2023/1/24 [v0.2.8]

  • 修复多bot处理bug

2023/1/20 [v0.2.7]

  • gocq插件版不支持base64图片发送,改为BytesIO发送服务器图标

2023/1/17 [v0.2.4]

  • 又忘记删东西导致无法运行,已修复

2023/1/16 [v0.2.3]

  • 最低python版本兼容至3.8

2023/1/15 [v0.2.2]

  • 优化多bot逻辑,机器人qq号配置改为可选

2023/1/15 [v0.2.1]

  • 插件重构

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_mc_server_status-0.4.2.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file nonebot_plugin_mc_server_status-0.4.2.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_mc_server_status-0.4.2.tar.gz
Algorithm Hash digest
SHA256 58f4187a8a6fbe932a5f27273468ccca90be560bed9c905f467e3f59b640bc27
MD5 28aedac96cc334de7d58aa4a10a4b3c8
BLAKE2b-256 3ff484dc51ae87e1ec48281353cb41401bd529f5493c2a3ec2638cd82c29976d

See more details on using hashes here.

File details

Details for the file nonebot_plugin_mc_server_status-0.4.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_mc_server_status-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ad035edc78f5f3a50ec3d812558bcb880000af85ab5dfe507180c39f031aefed
MD5 ce4baf27074a72cbeecac5f72aec6208
BLAKE2b-256 67aace1732513d5f0118942dd433b8ef44057f6ba0d46174a18e180014b254f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page