Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
nonebot-plugin-anime-trace
Advanced tools
前两天网站抽风,现已恢复正常。2023/08/25
nb plugin install nonebot-plugin-anime-trace
pip install nonebot-plugin-anime-trace
打开 nonebot2 项目根目录下的 pyproject.toml
文件, 在 [tool.nonebot]
部分追加写入
plugins = ["nonebot-plugin-anime-trace"]
默认配置下
命令: {#} {识别|角色|人物|} [gal|动漫]
说明:命令符不是命令头,只要包含命令符和命令关键字就会触发响应,例如“foo 识别 foo#foo”也可以触发
大括号内{}为必要关键字, 中括号内[]为可选参数, 默认使用动漫模型
附带一张图片、或回复一张图片、或再发送一张图片
可以自定义命令符、命令关键字
如果需要自定义配置,请在 nonebot2 项目的.env
文件中添加配置
class Config(BaseModel):
# 是否合并转发消息
animetrace_send_forward: bool = True
# 是否检测ai图
animetrace_ai_detect: bool = True
# 是否分多条消息发送:角色,作品,链接
animetrace_extract: bool = True
# 是否发送萌娘百科链接
animetrace_moegirl: bool = False
# 自定义搜索链接, 设置为空""则取消
animetrace_url: str = "zh.wikipedia.org/w/index.php?search="
# 命令符
animetrace_cmd: str = "#"
# 命令关键字
animetrace_keyword: set[str] = {"识别", "角色", "人物"}
# 响应优先级
animetrace_priority: int = 10
# 动漫模型
animetrace_model_anime: str = "pre_stable"
# galgame模型
animetrace_model_gal: str = "game_model_kirakira"
# 一个角色最多返回几个识别结果
animetrace_max_num: int = 3
# bot昵称
nickname: list[str] = ["anime trace"]
动漫模型和 galgame 模型请前往 ai.animedb.cn查看
网站没有识别到该图中的角色
网站处理图片出错,可能是图中角色过多、或者网站后端挂了,可以尝试裁剪图片
网站接收图片出错,可能是图中角色过多、或者网站后端挂了,可以尝试裁剪图片
请先去ai.animedb.cn尝试能否识别,若能识别,联系我更新;若不能识别,等待站长修复
send_group_forward_msg
字段 类型 说明 group_id uint 群号 messages List[Node] 自定义转发消息
Node
字段 类型 说明 uin string QQ 号 name string 昵称 content List[OneBotSegment] / OneBotSegment 消息内容
send_private_forward_msg
字段 类型 说明 user_id uint 好友 QQ 号 messages List[Node] 自定义转发消息
FAQs
通过ai.animedb.cn的api识别动漫、galgame角色
We found that nonebot-plugin-anime-trace demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.