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.48.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.48-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.48.tar.gz.

File metadata

  • Download URL: nonebot_plugin_mccheck-0.1.48.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.48.tar.gz
Algorithm Hash digest
SHA256 73acc23ec8195b8d8861114efa671feabe0683114a083d685c67a659e00089bc
MD5 2c4e08d1b565831c678afc7d2d0a88a4
BLAKE2b-256 5df85d4a251f4779d0e3c256fe67cac4536717dae27092ea942fa1a21574976f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_mccheck-0.1.48-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 daf333c217a6b46274c88355289c6847e791dbe9e3f8bd0e8527c0d05f10bec6
MD5 d6bf18d9cc81d4f4a27de53b5f654adf
BLAKE2b-256 9f64052e9949513dff3920f687b8dad01f46814cee140338c159cab532d1590b

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