Skip to main content

A NoneBot2 plugin generates a pic from a Minecraft server's MOTD

Project description

NoneBotPluginLogo

NoneBotPluginText

NoneBot-Plugin-PicMCStat

✨ Minecraft 服务器 MOTD 查询 图片版 ✨

license pypi python pypi download wakatime

📖 介绍

插件实际上是可以展示 玩家列表Mod 端信息 以及 Mod 列表(还未测试) 的,这里没有找到合适的例子所以没在效果图里展示出来,如果遇到问题可以发 issue

插件包体内并没有自带图片内 Unifont 字体,需要的话请参考 这里 安装字体

因为下划线、删除线和斜体 nonebot-plugin-imageutils 的 bbcode 还不支持,所以还没做
(如果 wq 佬看到这个能不能酌情考虑一下呢 awa)

效果图

example
example

💿 安装

插件

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

打开 nonebot2 项目的 bot.py 文件, 在其中写入

nonebot.load_plugin('nonebot_plugin_picmcstat')

字体

字体文件请自行去自行去 这里 下载

有两种方式可以安装该字体

  • 方式一:直接安装在系统中
  • 方式二:放在 nonebot-plugin-utils 插件的字体文件目录中并将文件重命名为 unifont 即可使用,该插件配置可以参考 这里

⚙️ 配置

暂无配置

🎉 使用

发送 !motd 查看使用指南

usage

📞 联系

QQ:3076823485
Telegram:@lgc2333
吹水群:1105946125
邮箱:lgc2333@126.com

💡 鸣谢

nonebot-plugin-imageutils

  • 超好用的 Pillow 辅助库,快去用 awa

💰 赞助

感谢大家的赞助!你们的赞助将是我继续创作的动力!

  • 爱发电

  • 赞助二维码(点击展开)

    讨饭

📝 更新日志

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_picmcstat-0.1.0.tar.gz (24.8 kB view hashes)

Uploaded Source

Built Distribution

nonebot_plugin_picmcstat-0.1.0-py3-none-any.whl (23.7 kB view hashes)

Uploaded Python 3

Supported by

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