Skip to main content

Minecraft服务器状态查询的nonebot插件,支持IPv6/Minecraft server status query plugin for nonebot, IPv6 supported

Project description

NoneBotPluginLogo

nonebot-plugin-mccheck

✨ Minecraft 服务器查询插件 ✨

license pypi python pypi-download-count

简体中文|English

📖 介绍

Minecraft服务器状态查询,支持IPv6

https://github.com/molanp/zhenxun_plugin_mccheck/同步更新

💿 安装

以下提到的方法任选 其一 即可

[推荐]使用 nb-cli 安装 在 Bot 的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-mccheck
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip install nonebot-plugin-mccheck
# or
pdm add nonebot-plugin-mccheck
# or
poetry add nonebot-plugin-mccheck
# or
conda install nonebot-plugin-mccheck

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

    plugin["nonebot_plugin_mccheck"]

📈 已实现的功能

  • IPv6支持
  • 支持全平台适配器
  • 适配Unicode全字体与字形
  • 渲染Motd样式
  • 查询服务器昵称
  • 查询服务器最大人数,当前人数和玩家列表
  • 查询服务器motd
  • 返回服务器地址及端口
  • 返回服务器在线状态
  • 查询服务器延迟
  • 更精确的延迟
  • 支持互通服务器双次查询
  • 错误信息反馈
  • 端口自动补全
  • 智能判断IP地址是否正确
  • 不依赖任何外部api
  • 支持特殊端口查询(如2,80,443等)
  • 查询服务器favicon
  • 多语言
  • SRV支持
  • 完全彩色下划线/删除线
  • 获取服务器协议号

📑 未来的功能

  • 敬请期待

🖼️ 效果图

v0.1.45 Image_31020983743694.png image

🎈 特别说明

查询IPv6服务器

查服 [2001:db8:85a3::8a2e:370:7334]:25565  <-IPv6服务器地址及端口,端口和冒号可以不带

查服 2001:db8:85a3::8a2e:370:7334  <-IPv6服务器地址,插件会自动补全端口号

查服 2001:db8:85a3::8a2e:370:7334:25565  <-IPv6服务器地址及端口

查服 [2001:db8:85a3::8a2e:370:7334]  <-IPv6服务器地址

⚙️ 配置

在 nonebot2 项目的.env文件中添加下表中的必填配置

配置项 必填 默认值 说明
MCC__LANGUAGE zh-cn 插件渲染图片所使用的语言
可用语言:[zh-cn,zh-tw,en]
MCC__TYPE 0 插件发送的消息类型(0为HTML渲染图片, 1为文本)

🎲 消息类型对比

类型 特殊样式 Favicon 完全彩色下划线/删除线 全Unicode字体支持
文本
HTML

🎉 使用

命令 参数 范围 说明
查服/mcheck ip:端口ip 私聊/群聊 查询服务器状态
设置语言/set_lang 语言名称 私聊/群聊 设置插件渲染图片所使用的语言
当前语言/lang_now 私聊/群聊 查看当前插件渲染图片所使用的语言
语言列表/lang_list 私聊/群聊 查看插件支持的语言列表

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_mccheck-0.1.49.tar.gz (3.0 MB view details)

Uploaded Source

Built Distribution

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

nonebot_plugin_mccheck-0.1.49-py2.py3-none-any.whl (3.2 MB view details)

Uploaded Python 2Python 3

File details

Details for the file nonebot_plugin_mccheck-0.1.49.tar.gz.

File metadata

  • Download URL: nonebot_plugin_mccheck-0.1.49.tar.gz
  • Upload date:
  • Size: 3.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for nonebot_plugin_mccheck-0.1.49.tar.gz
Algorithm Hash digest
SHA256 ff81b261bb021b6839591d011e2e014a0a74b5925989e3e80ee5ee3ef056e72a
MD5 c77ec1e23b766ff39a6060e405651e72
BLAKE2b-256 ec549efb548cc9a6fb4fe4411f5e3e2fa47118a59502728b5e08354e6d3167b9

See more details on using hashes here.

File details

Details for the file nonebot_plugin_mccheck-0.1.49-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_mccheck-0.1.49-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4ee916489f737297da4af29c2523480d9ae2c44b4f43689a39cd6310f17e9671
MD5 bcf6c3f3d415dd3242c6ba5d2a180712
BLAKE2b-256 5045b6f292a1f94236171af5e24fb21ad578f782d95f944ae2ce06e1f8e284eb

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