Skip to main content
NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-bili-dynamic

✨ B站动态/直播推送插件,支持图片渲染 ✨

license pypi python

📖 介绍

B站动态/直播推送插件,基于 Colter23 bilibili-dynamic-mirai-plugin v3 风格渲染图片。

  • 支持动态检测推送(文字/图文/视频/专栏/直播)
  • 支持直播开播提醒
  • 使用 Skia 引擎渲染卡片图片
  • 支持 HSB 渐变背景、半透明卡片、阴影效果

💿 安装

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

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

plugins = ["nonebot_plugin_bili_dynamic"]

⚙️ 配置

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

配置项 必填 默认值 说明
bili_account__sessdata B站 SESSDATA Cookie
bili_account__bili_jct B站 bili_jct Cookie
push__max_age_hours 24 动态推送最大时效(小时),超过的仅记录不推送,0为不限制

注意:嵌套配置项需使用双下划线 __ 连接,如 push__max_age_hours=48

🎉 使用

指令表

指令 权限 需要@ 范围 说明
/bi add 群员 群/私聊 订阅UP主
/bi del 群员 群/私聊 取消订阅
/bi list 群员 群/私聊 查看订阅列表
/bi live 群员 群/私聊 查询直播状态
/bi new [n] 群员 群/私聊 查看最新n条动态
/bi login 群员 群/私聊 B站扫码登录
/bi color 群员 群/私聊 设置主题色

📸 效果图

(TODO: 添加渲染效果图)

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_bili_dynamic-0.2.6.tar.gz (43.6 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_bili_dynamic-0.2.6-py3-none-any.whl (46.6 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_bili_dynamic-0.2.6.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_bili_dynamic-0.2.6.tar.gz
Algorithm Hash digest
SHA256 5663f82d203b1ef391e92805ce5c0fa61d7e4adf98491a46bbdd075a9d3b419a
MD5 f0df171bb2e6555bd44b415a96f9ff9e
BLAKE2b-256 b8fb88926bf91fc50932b39880d9ac22b60650e246147c10c21ecdf4a914b326

See more details on using hashes here.

File details

Details for the file nonebot_plugin_bili_dynamic-0.2.6-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_bili_dynamic-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f30fc47d3a89d15c0d4ea15c7c4b5ecaf900702c90548c1edcc50dd7fa83f01d
MD5 5dff995a8f097c7065137368285554fe
BLAKE2b-256 5705f55843926ef290a1239e041a659108fe0a05ae6b3385e96a29304eadf40e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.6 This release

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page