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

53 lines
2.1 KiB
Markdown

5 years ago
# blivechat
用于OBS的仿YouTube风格的bilibili直播聊天层
5 years ago
最近喜欢看VTuber想为此写些程序于是有了这个东西。~~写到一半发现有类似项目了:[bilibili-live-chat](https://github.com/Tsuk1ko/bilibili-live-chat)、[BiliChat](https://github.com/3Shain/BiliChat)。~~ 本项目就当做练手吧而且对YouTube的模仿程度更高
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
## 特性
5 years ago
* 兼容YouTube直播chat的样式
5 years ago
* 金瓜子礼物模仿Super Chat显示
* 高亮舰队、房管、主播的用户名
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 80
```
5 years ago
3. 用浏览器打开[http://localhost](http://localhost)输入房间ID保存配置进入房间复制房间URL
5 years ago
4. 可选用样式生成器生成样式复制CSS
5. 在OBS中添加浏览器源输入URL和自定义CSS或者可以在首页的样式设置里输入CSS
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 80
```
5 years ago
3. 用浏览器打开[http://localhost](http://localhost)输入房间ID保存配置进入房间复制房间URL
5 years ago
4. 可选用样式生成器生成样式复制CSS
5. 在OBS中添加浏览器源输入URL和自定义CSS或者可以在首页的样式设置里输入CSS
5 years ago
### Docker
1. ```sh
5 years ago
docker run -d -p 80:80 xfgryujk/blivechat:latest
5 years ago
```
2. 以下略