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.2.0.tar.gz (41.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.0-py3-none-any.whl (46.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_bili_dynamic-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8313d8c388e736a13012745d4739b957917a5f9787f7e8680767a88e395d90a1
MD5 eb82f246aef27fa540e234bc39ac7c84
BLAKE2b-256 b9c3e047d7b9433cb340e9ce163dc2eda11dc0cf5ab3e5bbf2cfa93e7689f5e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_bili_dynamic-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c0f235552e38e299d09519e71f0c947ee96853697f3054f2b272bdc931091cd
MD5 6aedd3e01647b0b128b1048da83342fd
BLAKE2b-256 9f042350c1a905f32b436719c243e57f7d49d7e174cf8801edde0cc41c4567d3

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