保存表情包(语录)与随机出图
Project description
nonebot-plugin-savepic
✨ 一个存取图片的插件 ✨
📖 介绍
重写自 Fran 的 Savepic
savepic
保存表情包
randpic
抽取表情包
直接发送文件名
发送文件名即可发送表情包
💿 安装
使用 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 | 图片本地保存位置 |
🎉 使用
指令表
指令 | 权限 | 需要@ | 范围 | 说明 |
---|---|---|---|---|
savepic | 群员 | 是 | 群聊 | 保存图片 |
randpic | 群员 | 是 | 全部 | 随机图片 |
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.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0dcb95764029adcf177087fba7b99ddbd28ec59acb5aced241bd31f4c1e969d |
|
MD5 | 15a7d6dd5058b432fa8a1820b5ca21af |
|
BLAKE2b-256 | 9c406a509e0b86c840ba9c8f937f5c20625ddb1d7919ac3e7ae67450861d62e9 |
Close
Hashes for nonebot_plugin_savepic-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78f8ce3966c6eb44b361cd95a311c4ef3aaad3dbd4481e0fc6e91c79b5186b09 |
|
MD5 | 4d7833936768412749024f4c6f7f2fc3 |
|
BLAKE2b-256 | c27f756ad5d002b93fdd02434602d1730df7c2e44c36f211a5b205929d7ce7bd |