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.5.tar.gz (43.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_bili_dynamic-0.2.5-py3-none-any.whl (46.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_bili_dynamic-0.2.5.tar.gz
Algorithm Hash digest
SHA256 be43c41a27b596c484ff9714de1c51419da5b1c63cef2e08cc3edd75cf3e740f
MD5 6e16ce2551ddd20ab4bb30d5b26050d4
BLAKE2b-256 4baf954e0f22a2259014a7e5cc23577c9b38623eab42e0720c82c4b005d8a47b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_bili_dynamic-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e7c4f0f309aaf8940be844eab8be65228889891054ab6de85676d2ab6332a711
MD5 1e4e26e2bdcf833af8c56ee31be994a8
BLAKE2b-256 4c416a7cbd6446920981721104b347b015db45ac62e573787c3d23bcde827714

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.6

2 files

This release

0.2.5 This release

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