A NoneBot2 plugin generates a picture which shows the status of current device
Project description
📖 介绍
不多说,直接看图!
效果图
💿 安装
[推荐] 使用 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot-plugin-picstatus-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3f68548279f7e0cc3a3912305cb508675a2b346b92def0d663773a0887498fb |
|
MD5 | e862d367cdec0ab9bf47185bb6d2ebda |
|
BLAKE2b-256 | b96e4d13d82ed4309821fd065fc0dd618ae51e7b8340479f2dba0e09cb35e71b |
Close
Hashes for nonebot_plugin_picstatus-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 976a3ab07e0e4930571e1b4fe2d853dde7ebc290c4327dc49b139e4a64676177 |
|
MD5 | e79ebe6229b54cdb87f87215007f9c99 |
|
BLAKE2b-256 | 3760aef06ca54ee73ba5fb9111e0e2b24f687bdd0cdf4f2de2034e353726c91e |