Skip to main content

芝士一个B站用户与视频查询插件,可支持订阅(视奸)用户更新并提醒

Project description

nonebot-plugin-bili-query

✨ B站查询与提醒插件 for NoneBot2 ✨

功能

  • /用户查询 - 查询B站用户信息(粉丝数、投稿数、最近视频等数据)
  • /视频查询 - 查询B站视频信息(播放量、点赞、投币、收藏等数据)
  • /订阅 - 订阅UP主,新视频发布时自动在群里提醒
  • /取消订阅 - 取消订阅
  • /help - 显示所有指令

安装,指令二选一

nb plugin install nonebot-plugin-bili-query
pip install nonebot-plugin-bili-query

使用

在群聊中 @机器人 并输入以下命令:

指令 参数 说明 /help 无 显示所有指令 /用户查询 UID或空间链接 查询用户信息 /视频查询 BV号或视频链接 查询视频信息 /订阅 UID或空间链接 订阅用户更新 /取消订阅 UID或空间链接 取消订阅

示例

/用户查询 123456 /用户查询 https://space.bilibili.com/123456 /视频查询 BV1xx411c7mD /订阅 123456 /取消订阅 123456 /help 滚木 对的/help后面啥都没有

配置

无需用户配置

数据存储

订阅数据:使用 nonebot-plugin-localstore 管理,文件位于插件数据目录下 定时任务:使用 nonebot-plugin-apscheduler,每 5 分钟检查一次订阅用户更新

注意事项

1️⃣ 需要机器人有发送群消息的权限 2️⃣ 订阅功能依赖定时任务,需确保机器人持续运行 3️⃣ 首次使用前无需额外配置

开源协议

mit

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_query-0.1.0.tar.gz (8.8 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_query-0.1.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_bili_query-0.1.0.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_bili_query-0.1.0.tar.gz
Algorithm Hash digest
SHA256 60019c70fe8914a0a77778887cc0476b253025d782e148dafbc625aa76ff1426
MD5 ca930fba7b10d751e18b661e309e1af5
BLAKE2b-256 4d99f9305d85609d3bae0f11d2f8f77d3a04b7721735fbef4b7461829146a91b

See more details on using hashes here.

File details

Details for the file nonebot_plugin_bili_query-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_bili_query-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd1aeffe8180d3fecfc9a8ad68db2dc6459cb04bf903fe9869a38007aa4d1f43
MD5 4b85eb2fa472eb3cc1fde5cf2db5e942
BLAKE2b-256 1ea5061a557ce686b2bd5f54281c2c64e56921f1f4448e445c9c2021bcf5fa3d

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