Metadata-Version: 2.1
Name: nonebot-plugin-blive-danmaku
Version: 0.1.3
Summary: A danmaku plugin for Nonebot2
Home-page: https://github.com/zangxx66/nonebot_plugin_blive_danmaku
License: MIT
Keywords: nonebot,nonebot2,bilibili,danmaku
Author: ricardo
Author-email: thespirit@vip.qq.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.10
Requires-Dist: Brotli (==1.0.9)
Requires-Dist: aiohttp (==3.7.4)
Requires-Dist: bilireq (>=0.2.4,<0.3.0)
Requires-Dist: nonebot-adapter-onebot (>=2.2.2,<3.0.0)
Requires-Dist: nonebot2[fastapi] (>=2.0.0rc4,<3.0.0)
Requires-Dist: nonebot_plugin_apscheduler (>=0.2.0,<0.3.0)
Requires-Dist: tortoise (>=0.1.1,<0.2.0)
Requires-Dist: tortoise-orm (>=0.19.3,<0.20.0)
Project-URL: Documentation, https://github.com/zangxx66/nonebot_plugin_blive_danmaku#readme
Description-Content-Type: text/markdown

# nonebot_plugin_blive_danmaku
- 基于[nonebot2](https://v2.nonebot.dev/)开发的B站直播间弹幕监听Bot，参考了Haruka和blivechat的部分代码。  
- 起源于[哈鹿hallu](https://space.bilibili.com/3493118494116797)的一条动态，苦于做视频时没有人做路灯，翻录播的时候头都大了，说要花钱请个全职路灯，我寻思与其把钱送给别人，不如交给Bot去做路灯。
<center><image src="/doc/screenshot1.png"></image></center>
- 路灯：指把直播过程中有趣的点记录下来，给剪辑根据记录的时间点和内容做出对应的视频。

## 功能

- 用弹幕的形式记录直播高能点
- 弹幕指令为`#路灯`加上记录的内容
- 仅在开播时弹幕指令才会生效

## 安装
- Python >= 3.10
- 方式一：使用`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|关闭直播间弹幕监听|
|/订阅列表|| 

## 效果预览 

![](/doc/screenshot.png)

## 更新日志  
- v0.1.3
    - bot提醒在时间后面加上直播时长显示，避免直播画面没有当前时间的场景
- v0.1.2
    - fix局部变量无法正常更新的bug
- v0.1.0
    - 基于nonebot2，实现同步路灯弹幕到qq群  

## 感谢
- [HarukaBot](https://github.com/SK-415/HarukaBot)
- [blivechat](https://github.com/xfgryujk/blivechat)
- [nonebot2](https://v2.nonebot.dev/)


