使用方法 直接下载 releases 中的 bin文件即可
风格1: chatroom
风格2: pure
风格3: simple
风格4: info (感谢@soft98-top添加的theme4)
项目文件:
sender 发送弹幕的实现
getter 获取弹幕的实现
ui TUI的实现
配置文件: config.toml 仓库内不带 请自己 从 config.toml.demo 复制修改
Cookie = "cookie信息 从web端找一个请求头复制cookie"
RoomId = 指定直播间roomId
Theme = 1 // 主题 1 2 3
SingleLine = 1 // 是否开启单行
ShowTime = 1 // 是否显示时间
TimeColor = "#BBBBBB" // 时间颜色
NameColor = "#BBBBBB" // 名字颜色
ContentColor = "#BBBBBB" // 内容颜色
FrameColor = "#BBBBBB" // 边框颜色
InfoColor = "#BBBBBB" // 房间信息颜色
RankColor = "#BBBBBB" // 排行榜颜色
使用:
go run main.go -c config.toml
也可以从 参数定义 roomId, theme 优先级高于config(-r roomId, -t theme)
go run main.go -c config.toml -r 9527 -t 1
参数说明:
-c string:configfile
-r string:roomId
-t int:theme
-l int:singleline
-s int:showtime
快捷键:
- <esc> 退出
- <ctrl+c> 退出
- <ctrl+u> 清空输入内容
- 上一个输入记录
- 下一个输入记录
zaiic/bili-live-chat: A bilibili streaming chat tool using TUI written in Rust.