NoneBot plugin for pushing ani-rss/emby webhooks to QQ
Reason this release was yanked:
请使用新版本
Project description
nonebot-plugin-AniPusher
✨ NoneBot AniPusher插件 ✨
NoneBot AniPusher插件 是将特定Webhooks消息推送至QQ的插件
目前支持配置来自ani-rss和emby的webhooks消息
📖 介绍
AniPusher插件 是将特定Webhook消息推送至QQ的插件
目前支持AniRSS和Emby推送
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-AniPusher
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-AniPusher
pdm
pdm add nonebot-plugin-AniPusher
poetry
poetry add nonebot-plugin-AniPusher
conda
conda install nonebot-plugin-AniPusher
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_AniPusher"]
⚙️ ani-rss配置[ani-rss项目地址]
该配置方法基于ani-rss v2.0.13 更新后新的通知配置功能
ani-rss → 设置 → 通知 → 添加通知
↓按如下配置↓
通知类型为Webhook
Method为POST
URL为Nonebot2的IP地址和端口下的路径/webhook
例如http://Nonebot_IP:8080/webhook
↓Body请复制下方Json填入↓
{
"ani": "${action}",
"action": "${action}",
"title": "${title}",
"jpTitle": "${jpTitle}",
"score": "${score}",
"themoviedbName": "${themoviedbName}",
"tmdbid": "${tmdbid}",
"tmdbUrl": "${tmdburl}",
"bgmUrl": "${bgmUrl}",
"season": "${season}",
"episode": "${episode}",
"subgroup": "${subgroup}",
"progress": "${currentEpisodeNumber}/${totalEpisodeNumber}",
"premiere": "${year}-${month}-${date}",
"text": "${text}",
"downloadPath": "${downloadPath}",
"episodeTitle": "${episodeTitle}",
"bgmEpisodeTitle": "${bgmEpisodeTitle}",
"bgmJpEpisodeTitle": "${bgmJpEpisodeTitle}",
"image": "${image}"
}
[!TIP] 如果未来AniRSS更新通知配置发生变化,需更改Body结构时,请保留键
"ani": "${action}",程序判断数据来源依赖此键!
其余键值对可根据ani-rss的使用文档中通知下的通知模板对应的键结构进行更改
⚙️ Emby配置
首先请确保你已在Emby服务器上安装了Webhooks插件(该插件目前已自动集成,应该不用再手动装了)
Emby → 设置 → 通知 → 添加通知 -> Webhooks
↓按如下配置↓
网址为Nonebot2的IP地址和端口下的路径/webhook
例如http://Nonebot_IP:8080/webhook
请求内容类型为application/json
Event目前只支持媒体库-新媒体已添加
其他选项根据自身需求更改
⚙️ 插件配置
配置项位于 nonebot2 项目根目录下的 .env 文件内
运行时如果没有检查到配置项,插件将自动在.env 文件内创建配置项,前往按照说明填入即可。
所有配置项均为非必选项,但建议填写。配置项缺失会导致对应功能被关闭。
[!IMPORTANT] 缺少Emby_Host或Emby_ApiKey时,插件将无法验证视觉图有效性,不会下载或更新封面图片。
缺少Tmdb_ApiKey时,插件将无法验证TMDB ID,导致数据无法存入数据库,无法订阅对应内容。
缺少Tmdb_Proxy时,插件将仅尝试直连TMDB API,如失败则无法验证TMDB ID,导致数据无法存入数据库,无法订阅对应内容。
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| anipush__emby_host | 否 | 无 | Emby的服务器地址(请勿填写中转地址) |
| anipush__emby_apikey | 否 | 无 | Emby服务器-高级-API密钥中生成的密钥 |
| anipush__tmdb_apikey | 否 | 无 | TMDB用户的ApiKey |
| anipush__tmdb_proxy | 否 | 无 | TMDB代理,如不填写则不使用代理 |
🎉 使用
指令表
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|---|---|---|---|---|
| 注册Emby推送 | ALL | 否 | 私聊/群聊 | 群聊:发送指令后即将群组添加到Emby更新消息推送列表中,有新消息时将消息推送到群内 私聊:发送指令后即将用户添加到Emby更新消息推送列表中 |
| 注册AniRSS推送 | ALL | 否 | 私聊/群聊 | 群聊:发送指令后即将群组添加到AniRSS更新消息推送列表中,有新消息时将消息推送到群内 私聊:发送指令后即将用户添加到AniRSS更新消息推送列表中 |
| 取消Emby推送 | ALL | 否 | 私聊/群聊 | 群聊:发送指令后关闭群组更新消息推送,不再接收推送 私聊:发送指令后关闭用户更新消息推送,不再接收推送 |
| 取消AniRSS推送 | ALL | 否 | 私聊/群聊 | 群聊:发送指令后关闭群组更新消息推送,不再接收推送 私聊:发送指令后关闭用户更新消息推送,不再接收推送 |
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_anipusher-0.1.0.tar.gz.
File metadata
- Download URL: nonebot_plugin_anipusher-0.1.0.tar.gz
- Upload date:
- Size: 39.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
792166787bfc119cc32820533725c89bd8cf8a434999694757808109dae7d3d3
|
|
| MD5 |
84bd2df27357dea31001740ec0f5350e
|
|
| BLAKE2b-256 |
c3aab2143e6010038efadba056daae09c46f62142dd850ed6d4b073905b09a03
|
Provenance
The following attestation bundles were made for nonebot_plugin_anipusher-0.1.0.tar.gz:
Publisher:
pypi-publish.yml on AriadusTT/nonebot-plugin-anipusher
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nonebot_plugin_anipusher-0.1.0.tar.gz -
Subject digest:
792166787bfc119cc32820533725c89bd8cf8a434999694757808109dae7d3d3 - Sigstore transparency entry: 292886383
- Sigstore integration time:
-
Permalink:
AriadusTT/nonebot-plugin-anipusher@93da887fccfefcd132945fd6fba429a729b4171e -
Branch / Tag:
refs/tags/v0.1 - Owner: https://github.com/AriadusTT
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@93da887fccfefcd132945fd6fba429a729b4171e -
Trigger Event:
release
-
Statement type:
File details
Details for the file nonebot_plugin_anipusher-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_anipusher-0.1.0-py3-none-any.whl
- Upload date:
- Size: 54.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
401e3b5b46765fc6052232951c21122520e3b6a51ffae76e7baf4933f86ef291
|
|
| MD5 |
d7d8c4894aba8f910f76aea057741129
|
|
| BLAKE2b-256 |
9abcf0abf0190841dc513d3fe863f0f764fc2a5de6c7dd98d3c62aa80cd9c307
|
Provenance
The following attestation bundles were made for nonebot_plugin_anipusher-0.1.0-py3-none-any.whl:
Publisher:
pypi-publish.yml on AriadusTT/nonebot-plugin-anipusher
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nonebot_plugin_anipusher-0.1.0-py3-none-any.whl -
Subject digest:
401e3b5b46765fc6052232951c21122520e3b6a51ffae76e7baf4933f86ef291 - Sigstore transparency entry: 292886394
- Sigstore integration time:
-
Permalink:
AriadusTT/nonebot-plugin-anipusher@93da887fccfefcd132945fd6fba429a729b4171e -
Branch / Tag:
refs/tags/v0.1 - Owner: https://github.com/AriadusTT
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@93da887fccfefcd132945fd6fba429a729b4171e -
Trigger Event:
release
-
Statement type: