A danmaku plugin for Nonebot2
Project description
简介
- 基于nonebot2开发的B站直播间弹幕监听插件,参考了Haruka和blivechat的部分代码。
- 起源于哈鹿hallu的一条动态,苦于做视频时没有人做路灯,翻录播的时候头都大了,说要花钱请个全职路灯,我寻思与其把钱送给别人,不如交给Bot去做路灯。
- 路灯:指把直播过程中有趣的点记录下来,给剪辑根据记录的时间点和内容做出对应的视频。
功能
- 用弹幕的形式记录直播高能点
- 弹幕指令为
#路灯
加上记录的内容 - 仅在开播时弹幕指令才会生效
依赖
- Python >= 3.10
- OneBot V11
安装
- 方式一:使用
nb-cli
安装插件
nb plugin install nonebot-plugin-blive-danmaku
- 方式二:使用
pip
安装
python -m pip install nonebot-plugin-blive-danmaku
指令
指令 | 说明 |
---|---|
/添加订阅 UID | UID为B站用户的uid,不是直播间id,以下同理 |
/取消订阅 UID | 删除订阅 |
/开启路灯 UID | 开启直播间弹幕监听 |
/关闭路灯 UID | 关闭直播间弹幕监听 |
/订阅列表 |
效果预览
更新日志
- v0.1.4
- v0.1.3
- bot提醒在时间后面加上直播时长显示,避免直播画面没有当前时间的场景
- v0.1.2
- fix局部变量无法正常更新的bug
- v0.1.0
- 基于nonebot2,实现同步路灯弹幕到qq群
感谢
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nonebot_plugin_blive_danmaku-0.1.62.tar.gz
.
File metadata
- Download URL: nonebot_plugin_blive_danmaku-0.1.62.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dda5ca01c26d592257a8ee9c0b1e95bf0d8e95af3dd87fb539e45dbcfc0c30b8 |
|
MD5 | e5ff0187b9a87c189386727890947340 |
|
BLAKE2b-256 | 33349e8d6605c2cddb0b583e9b132c1634986b2ba6dd115b89ae9a55784e6ad8 |
File details
Details for the file nonebot_plugin_blive_danmaku-0.1.62-py3-none-any.whl
.
File metadata
- Download URL: nonebot_plugin_blive_danmaku-0.1.62-py3-none-any.whl
- Upload date:
- Size: 31.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec9e02f6d92999f6f5c825effd5ca52a7ec74f5afeff43498b848047c7341def |
|
MD5 | d16dea70c507e7b9e27193faa4de5928 |
|
BLAKE2b-256 | c376ca761a41437379bc6a49d974f46c1fa0b22cdf4d313cc9558a3450b7da76 |