Skip to main content

A NoneBot2 plugin generates a picture which shows the status of current device

Project description

NoneBot-Plugin-PicStatus

✨ 运行状态图片版 for NoneBot2 ✨

license pypi python pypi download wakatime

📖 介绍

不多说,直接看图!

效果图

example

💿 安装

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

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

nonebot.load_plugin('nonebot_plugin_picstatus')
从 github 安装 在 nonebot2 项目的插件目录下, 打开命令行, 输入以下命令克隆此储存库
git clone https://github.com/lgc2333/nonebot-plugin-picstatus.git

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

nonebot.load_plugin('src.plugins.nonebot_plugin_picstatus')

⚙️ 配置

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

配置项 类型 必填 默认值 说明
PS_ONLY_SU 布尔值(bool False 是否只能由SuperUsers触发指令
PS_BLUR_RADIUS 整数(int 4 背景高斯模糊半径
PS_FONT 文本(str 自定义字体路径

🎉 使用

使用指令运行状态(或者状态)来触发插件功能
可以在消息后面跟一张图片或者回复一张图片来自定义背景图,默认为随机背景图
可以配置PS_ONLY_SU配置项来仅允许超级用户(SuperUsers)触发插件功能(见配置

📞 联系

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

💰 赞助

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

  • 爱发电

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

    讨饭

📝 更新日志

暂无

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-picstatus-0.1.0.tar.gz (16.1 MB view hashes)

Uploaded Source

Built Distribution

nonebot_plugin_picstatus-0.1.0-py3-none-any.whl (16.1 MB 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