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

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

    plugin["nonebot_plugin_mccheck"]

📈 已实现的功能

  • IPv6支持
  • 支持全平台适配器
  • 支持Unicode全字体与字形
  • Motd样式渲染
  • 支持互通服务器双次查询
  • 多语言
  • SRV支持

📑 未来的功能

  • 敬请期待

🖼️ 效果图

v0.1.45 Image_31020983743694.png image

🎈 特别说明

查询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.2.6.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.2.6-py2.py3-none-any.whl (3.2 MB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for nonebot_plugin_mccheck-0.2.6.tar.gz
Algorithm Hash digest
SHA256 2e1dff5d9826771e55d07e02768b2457315876901a181c120481cd0ff1129fb2
MD5 e5838a4021ea36c5e2bf782e1228fa96
BLAKE2b-256 126324d17b1aa1cad60f5fa0ef42a81a7fe8c4caff71ba7d243d0e5147ba9b1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_mccheck-0.2.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 725eb9ba5ffb649cac765a6dc42b3fc89d0b58109d3ee2db2c7d7bcbe49a913f
MD5 e6fc767d811a1ffa855bce127e91b205
BLAKE2b-256 7ef716ae29af803b993a44bb2ad030f45b673514d9c628c684b2f62b1c6bb939

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