Skip to main content
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 无 私聊/群聊 查看插件支持的语言列表

Metadata

Release files for nonebot-plugin-mccheck 0.3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-mccheck 0.3.5
File Size Uploaded
nonebot_plugin_mccheck-0.3.5.tar.gz 1.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-mccheck 0.3.5
File Interpreter ABI Platform
nonebot_plugin_mccheck-0.3.5-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 2.8 MB

Release files / nonebot_plugin_mccheck-0.3.5.tar.gz

Download URL nonebot_plugin_mccheck-0.3.5.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
1b7ceb5c83829431e4a25766b491a919adc763a24075d9b5eea9463fc300396c
BLAKE2b-256 checksum
How to use checksums
47195d51036f59ed77e1b0f67d9aff775175767f42e92e3db2f6ae0a2a70dc57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / nonebot_plugin_mccheck-0.3.5-py2.py3-none-any.whl

Download URL nonebot_plugin_mccheck-0.3.5-py2.py3-none-any.whl
Size 1.4 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0b68a0c93567bb6392c94d8c6947d46b5b51a94a73f30036b92fa346b9f66bef
BLAKE2b-256 checksum
How to use checksums
212bfaadf6eee79aa60ef05a99070f08217109943f5990ea8610d454667f9837
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

This release

0.3.5 This release

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.0

2 release files

0.1.57

2 release files

0.1.54

2 release files

0.1.52

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page