Skip to main content

B站动态/直播推送 NoneBot2 插件(基于 Colter23/mirai 插件移植)

Project description

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

🎉 使用

指令表

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

📸 效果图

(TODO: 添加渲染效果图)

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_bili_dynamic-0.1.5.tar.gz (40.1 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.1.5-py3-none-any.whl (44.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_bili_dynamic-0.1.5.tar.gz
Algorithm Hash digest
SHA256 6b6eb533ba6d3cebb9d6a8a603c6646563ecba04a5b7c3875bd5001c027db1fa
MD5 26e8e1230f340254b9f0ea388b3d58ca
BLAKE2b-256 5434024a55773ef22f677c321748672d1e33af380d0ae05cba146379d5ad7204

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_bili_dynamic-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f9da5b6102d6c337e839f4178b437192a450102c68a7cab4dc7ebd50a0131018
MD5 0fd52d17e487fa6e8ba975b17bb4f155
BLAKE2b-256 627885d9619a106b6b2f33873ccf5f6a533595ff61bb96bec8888c392b932f72

See more details on using hashes here.

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