保存表情包(语录)与随机出图
Project description
nonebot-plugin-savepic
✨ 一个存取图片的插件 ✨
📖 介绍
重写自 Fran 的 Savepic
savepic
保存表情包
randpic
抽取表情包
mvpic
重命名表情包,或者修改表情包所属的群域
例如:
/mvpic -l name.jpg -g waaaaa.gif
就是把本群的 name.jpg 改成全局名为 waaaaa.gif 的表情包
同理
/mvpic -g waaaaa.gif -l waaaaa.gif
就是从全局移到本群(接收到命令的群)
直接发送文件名
发送文件名即可发送表情包
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-savepic
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-savepic
pdm
pdm add nonebot-plugin-savepic
poetry
poetry add nonebot-plugin-savepic
conda
conda install nonebot-plugin-savepic
打开 nonebot2 项目根目录下的 pyproject.toml
文件, 在 [tool.nonebot]
部分追加写入
plugins = ["nonebot_plugin_savepic"]
⚙️ 配置
在 nonebot2 项目的.env
文件中添加下表中的必填配置
配置项 | 必填 | 默认值 | 说明 |
---|---|---|---|
savepic_admin | 否 | 无 | 权限用户 |
savepic_dir | 否 | savepic | 图片本地保存位置 |
simpic_enable | 否 | False | 是否开启基于RNN模型的AI相似度检索功能,如果开启要填写 Pinecone 相关配置 |
pinecone_apikey | 否 | 无 | pinecone 的 Key |
pinecone_environment | 否 | 无 | pinecone 的 enviroment,是数据库的属性之一 |
pinecone_index | 否 | savepic | 同上。 |
dashscope_api | 否 | 无 | dashscope 的 APIKey。 用于开启基于语义的相似度检索功能 |
🎉 使用
指令表
指令 | 权限 | 需要@ | 范围 | 说明 |
---|---|---|---|---|
savepic | 群员 | 否 | 群聊 | 保存图片 |
randpic | 群员 | 否 | 全部 | 随机图片 |
mvpic | 管理员 | 否 | 群聊 | 重命名图片 |
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_savepic-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5dfb4482c202397a4aabe247e96ec64698a08ef3e45912910246fb68b680e86c |
|
MD5 | 09325deaf0e52e32549486e49a6fcea9 |
|
BLAKE2b-256 | 569e4ea503755dc938278b5fa460e724f627975486db0fa6dc1a45f1ccbb388e |
Close
Hashes for nonebot_plugin_savepic-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ec66ac3feb2dd26356cb8f643428b01705bd0bf475b38ce7163a3ad8cac9e6f |
|
MD5 | ae42c8857eb7eb49afefc0120c17df76 |
|
BLAKE2b-256 | fe4e4589470c9c99c4f2c1f6d1686a5a62617f5ee111f9601d9628f87cb4924c |