另一个色图插件
Project description
nonebot-plugin-setu-now
✨ NoneBot2 涩图插件 ✨
简介
可通过群聊或私聊获取 Pixiv 涩图的 NoneBot2 插件
特色
-
极高的涩图发送成功率(仅限0.5.0以上新版本)
-
通过回复获取图片信息
-
自动撤回涩图
-
R18白名单群组
-
自动撤回涩图
-
独立的下载发送任务结构,速度更快
安装
使用 nb-cli 安装(推荐):
nb plugin install nonebot-plugin-setu-now
使用 pip 安装:
pip install nonebot-plugin-setu-now
使用 git clone 安装(不推荐喵):
git clone https://github.com/kexue-z/nonebot-plugin-setu-now.git
.env 默认配置
只有要用到的才填写,如果用不到或者不知道怎么设置,就不用写配置也能用
setu_cd=
setu_path=
setu_proxy=
setu_withdraw=
setu_reverse_proxy=
setu_size=
setu_api_url=
setu_max=
setu_add_random_effect=
setu_minimum_send_interval=
setu_send_as_bytes=
setu_excludeAI=
setu_cdCD(单位秒) 可选 默认60秒setu_path保存路径 可选 可不填使用默认setu_porxy代理地址 可选 当 pixiv 反向代理不能使用时可自定义setu_reverse_proxypixiv 反向代理 可选 默认i.pixiv.resetu_withdraw撤回发送的色图消息的时间, 单位: 秒 可选 默认关闭填入数字来启用, 建议10~120仅对于非合并转发使用setu_size色图质量 默认regular可选originalregularsmallthumbminisetu_api_url色图信息 api 地址 默认https://api.lolicon.app/setu/v2如果有 api 符合类型也能用setu_max一次获取色图的数量 默认30如果你的服务器/主机内存吃紧 建议调小setu_add_random_effect在发送失败时,随机添加线条效果或缩放模糊效果 该选项目前已失效 默认使用模糊缩放效果setu_minimum_send_interval连续发送最小间隔(秒) 可选 默认3setu_send_as_bytes以bytes方式发送到客户端,默认False,True:Nonebot将会读取临时路径下的图片,并传到gocq等客户端。速度较慢False: 将会直接传输文件路径到gocq等客户端,并让客户端来读取。速度较快。如果 gocq 与 Nonebot 处于容器中,并且没有设定共享路径,则客户端将会无法读取图片,导致发送失败。
setu_excludeAI排除 AI 生成的图片 默认FalseTrue:排除 AI 生成的图片False: 不排除 AI 生成的图片
有配置均可选,按需填写
使用
获取色图
使用正则的方式获取
^(setu|色图|涩图|来点色色|色色|涩涩|来点色图)\s?([x|✖️|×|X|*]?\d+[张|个|份]?)?\s?(r18)?\s?\s?(tag)?\s?(.*)?
解释:
- 指令 以
setu|色图|涩图|来点色色|色色|涩涩为开始- 然后接上可选数量
x1010张|个|份 - 再接上可选
r18 - 可选
tag - 最后是关键词
- 然后接上可选数量
- 说明
- 数量 可选 默认为 1
r18可选 仅在私聊可用 群聊直接忽视tag可选 如有 关键词参数会匹配pixiv 标签 tag- 关键词 可选 匹配任何
标题作者或pixiv 标签
- 例子
来点色色 妹妹setur18色图 x20 tag 碧蓝航线 妹妹涩涩10份魅魔
获取图片信息
[回复消息] 信息
解释:
- 回复bot发送的图片,并且附上指令
信息 - 该指令为
on_command即需要带有命令前缀(如果你设置了/则应该是[回复消息] /信息)
R18 设置
- 如果要求发送 R18 图片时,则数量会被忽略,仅发送单张
- 私聊中 R18 无白名单限制
- 群聊中 R18 需开启白名单,由
超级管理员权限开启
开启白名单指令:
开启涩涩/可以涩涩/开启色色/可以色色/r18开启
关闭白名单指令:
关闭涩涩/不可以涩涩/关闭色色/不可以色色/r18关闭
在吗?
- 色图
on_regex而不是on_command(不需要带命令前缀)
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_setu_now-0.6.6.tar.gz.
File metadata
- Download URL: nonebot_plugin_setu_now-0.6.6.tar.gz
- Upload date:
- Size: 53.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
028ad6f55df9d91a74e55bfd3b697e8c44cf9acf262415f951489737f6fa9ce1
|
|
| MD5 |
cab459a0c306619518cc1690e9a1bbc5
|
|
| BLAKE2b-256 |
e52f0456ecd213ded2d3fedfbb8b44aa4e540ded9740868a976f458ae6dbd003
|
Provenance
The following attestation bundles were made for nonebot_plugin_setu_now-0.6.6.tar.gz:
Publisher:
publish.yml on kexue-z/nonebot-plugin-setu-now
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nonebot_plugin_setu_now-0.6.6.tar.gz -
Subject digest:
028ad6f55df9d91a74e55bfd3b697e8c44cf9acf262415f951489737f6fa9ce1 - Sigstore transparency entry: 153206121
- Sigstore integration time:
-
Permalink:
kexue-z/nonebot-plugin-setu-now@08a22dbd99cf6265480c7f0b6c87364241baf8be -
Branch / Tag:
refs/tags/v0.6.6 - Owner: https://github.com/kexue-z
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@08a22dbd99cf6265480c7f0b6c87364241baf8be -
Trigger Event:
push
-
Statement type:
File details
Details for the file nonebot_plugin_setu_now-0.6.6-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_setu_now-0.6.6-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f79fcec5143f0b70fdae5592d8b02503d0a7543a17ad6d92a2cfc8a7f7faeed
|
|
| MD5 |
2fca89942847b82c8db8193082a443ed
|
|
| BLAKE2b-256 |
66ba40bbc41006eb2ca4c5702aa21866caede4b6744e2b1a61cb0c8e22baa34a
|
Provenance
The following attestation bundles were made for nonebot_plugin_setu_now-0.6.6-py3-none-any.whl:
Publisher:
publish.yml on kexue-z/nonebot-plugin-setu-now
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nonebot_plugin_setu_now-0.6.6-py3-none-any.whl -
Subject digest:
8f79fcec5143f0b70fdae5592d8b02503d0a7543a17ad6d92a2cfc8a7f7faeed - Sigstore transparency entry: 153206122
- Sigstore integration time:
-
Permalink:
kexue-z/nonebot-plugin-setu-now@08a22dbd99cf6265480c7f0b6c87364241baf8be -
Branch / Tag:
refs/tags/v0.6.6 - Owner: https://github.com/kexue-z
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@08a22dbd99cf6265480c7f0b6c87364241baf8be -
Trigger Event:
push
-
Statement type: