You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
blivechat/README.md

58 lines
2.2 KiB
Markdown

5 years ago
# blivechat
用于OBS的仿YouTube风格的bilibili直播评论栏
5 years ago
5 years ago
最近喜欢看VTuber想为此写些程序于是有了这个东西。~~写到一半发现有类似项目了:[bilibili-live-chat](https://github.com/Tsuk1ko/bilibili-live-chat)、[BiliChat](https://github.com/3Shain/BiliChat)~~
5 years ago
5 years ago
![OBS截图](https://github.com/xfgryujk/blivechat/blob/master/screenshots/obs.png)
![Chrome截图](https://github.com/xfgryujk/blivechat/blob/master/screenshots/chrome.png)
![样式生成器截图](https://github.com/xfgryujk/blivechat/blob/master/screenshots/stylegen.png)
5 years ago
## 特性
* 兼容YouTube直播评论栏的样式
* 金瓜子礼物模仿醒目留言显示
5 years ago
* 高亮舰队、房管、主播的用户名
5 years ago
* 支持屏蔽弹幕、合并相似弹幕等设置
5 years ago
* 自带样式生成器
5 years ago
* 支持自动翻译弹幕、醒目留言到日语
5 years ago
## 使用方法
### 本地使用
5 years ago
1. 下载[发布版](https://github.com/xfgryujk/blivechat/releases)仅提供x64 Windows版
5 years ago
2. 双击`blivechat.exe`运行服务器或者用命令行可以指定host和端口号
```bat
blivechat.exe --host 127.0.0.1 --port 12450
5 years ago
```
3. 用浏览器打开[http://localhost:12450](http://localhost:12450)输入房间ID保存配置复制房间URL
4. 用样式生成器生成样式复制CSS
5. 在OBS中添加浏览器源输入URL和自定义CSS
5 years ago
### 公共服务器
请优先在本地使用,使用公共服务器会有更大的弹幕延迟,而且服务器故障时可能出现直播事故
* [第三方公共服务器](http://chat.bilisc.com/)
* [仅样式生成器](https://style.vtbs.moe/)
5 years ago
### 源代码版
5 years ago
1. 编译前端需要安装Node.js和npm
5 years ago
```sh
cd frontend
npm i
5 years ago
npm run build
5 years ago
```
5 years ago
2. 运行服务器需要Python3.6以上版本):
5 years ago
```sh
5 years ago
pip3 install -r requirements.txt
5 years ago
python3 main.py
```
或者可以指定host和端口号
```sh
python3 main.py --host 127.0.0.1 --port 12450
```
3. 用浏览器打开[http://localhost:12450](http://localhost:12450),以下略
5 years ago
### Docker
1. ```sh
docker run -d -p 12450:12450 xfgryujk/blivechat:latest
5 years ago
```
2. 用浏览器打开[http://localhost:12450](http://localhost:12450),以下略