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.1.tar.gz (37.3 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.1-py3-none-any.whl (42.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_bili_dynamic-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e355f1206d3657d0e725a26ea4e74c4cb4d2cfd4efb154fd1ceb317e878df599
MD5 fa44d3af1418cefa8d1b73e4e4f2507b
BLAKE2b-256 7f2a597a7a6d6248396ed5520bd5b72558d0eca6a41c4a818cbb369f6493b9df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_bili_dynamic-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ed15240aac960ea4ef9a4327fc5de84cf0439ce6b39bd4a70105549d6b5226cd
MD5 aafdf0026849fe2eb0fbe043bab68b9e
BLAKE2b-256 493ca62e8cb0f8611bf2a1364a43bb75654f09bf0820edda2bbee14288198189

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