Skip to main content

处理DDTV WebHook并推送相关信息

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-ddtv-webhook

✨ 处理DDTV WebHook并推送相关信息 ✨

license pypi python

📖 介绍

有一个监控室大爷,他每天至少需要观看720小时来自$2^{64}$位不同管人的直播才能保证身心健康。因此,他的好朋友编写了本插件,以便第一时间通过 QQ Bot 告知大爷哪位管人开播或者下播了。

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-ddtv-webhook
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-ddtv-webhook
pdm
pdm add nonebot-plugin-ddtv-webhook
poetry
poetry add nonebot-plugin-ddtv-webhook

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot-plugin-ddtv-webhook"]

⚙️ 配置

Webhook URL查询字符串

配置项 必填 默认值 说明
token 令牌;当与设置的 ddtv_webhook_token 相同时才会推送消息,否则返回 403

在 nonebot2 项目的.env文件中添加下表中的必填配置

配置项 必填 默认值 说明
ddtv_webhook_token 令牌,若不设置则不会进行验证,所有人都可以触发 Webhook
ddtv_webhook_send_to 信息订阅者的 QQ 号,格式为 ["123", "456"]
ddtv_webhook_send_to_group 信息订阅群的群号,格式为 ["123", "456"]
ddtv_webhook_route /ddtv_webhook Webhook 的 URI
superusers Bot 管理员 QQ 号,在什么都没填的情况下默认将所有消息发给 Bot 管理员,格式为 ["123", "456"]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_ddtv_webhook-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_ddtv_webhook-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_ddtv_webhook-0.1.0.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_ddtv_webhook-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d185c826ccd2ea09c696575d17fc2f629505f85a08ef12c62eed97d2465bdffa
MD5 fec2868206a3322009b751a94c7150f2
BLAKE2b-256 ca828a131a343980e3589a96a595b828dbb430e8938859fe534adde8172fb1f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_ddtv_webhook-0.1.0.tar.gz:

Publisher: pypi-publish.yml on Effect-Wei/nonebot-plugin-ddtv-webhook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nonebot_plugin_ddtv_webhook-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_ddtv_webhook-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d665cdf3ded9b20e8fbc6f988885abdd880cf59784e70f1592e3ed52ec10395
MD5 8fd41293320e40d9fc559666038b005f
BLAKE2b-256 eea80abf7f8fce78bb16ed5db1d7b68541afac54d90815017e0e28c69aa4f611

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_ddtv_webhook-0.1.0-py3-none-any.whl:

Publisher: pypi-publish.yml on Effect-Wei/nonebot-plugin-ddtv-webhook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page