当前位置:网站首页>golang bilibili直播弹幕姬
golang bilibili直播弹幕姬
2022-06-30 03:01:00 【Orange#】
GitHub - k-si/bilibili_live: 哔哩哔哩直播弹幕姬
bilibili直播弹幕姬来啦!
虽然市面上已有很多成熟的直播姬app,但还是想自己手搓一个以获得些许的成就感(说人话就是在家闲的)。
话不多说,来看看我搓的"弹幕姬"有啥好玩的。
功能
- 定时弹幕;一般用来给主播打call
- 弹幕聊天;程序调用了聊天机器人api,为贵宾排除寂寞
- 欢迎问候;欢迎进入直播间的舰长/小伙伴
- 检测开播:自动检测开播后运行功能,下播后关闭功能
(目前基础的架子已经搭好了,添加新功能只是人力问题...对,是我懒,哇酷哇酷)
ps:感兴趣的同学可以直接在此基础上二次开发,增加新功能了(就是对响应包的字段值做判断,然后调接口balabala...),具体查看bullet_girl/handle_bullet.go中的handle()函数
开始
修改配置文件 -> 启动程序 -> 手机小破站扫码登录 -> 程序运行
1、首先看config.toml,根据注释,修改成适合自己的参数
2、启动程序:
go run main.go -c="./config.toml"
或者,手动build好之后运行
go build main.go ./main -c="config.toml"
3、根据配置文件中的qr_code_path,对应生成二维码,扫码登录
4、程序开始运行,开始体验一下吧!
ps:查看main.go程序,就能知道看到启动的各个goroutine啦,程序结构还是很清晰哒,bullet_girl目录下的文件都是主要功能的实现。
展示一下
没开播,自己和自己玩的截图...

边栏推荐
- Intel hex, Motorola S-Record format detailed analysis
- (graph theory) connected component (template) + strongly connected component (template)
- Use of Arthas
- Mysql 带上库名称跨库操作可能出现的问题
- Servlet interview questions
- Unity3d ugui force refresh of layout components
- What is the concept of string in PHP
-  与空格的区别
- Linear algebra Chapter 3 summary of vector and vector space knowledge points (Jeff's self perception)
- 2022 tool fitter (Advanced) and tool fitter (Advanced) certificate examination
猜你喜欢

Intel-Hex , Motorola S-Record 格式详细解析
![[live broadcast notes 0629] Concurrent Programming II: lock](/img/5c/42f5c9a9969b4d2bb950a7caac5555.png)
[live broadcast notes 0629] Concurrent Programming II: lock

【直播笔记0629】 并发编程二:锁

Study diary: February 15, 2022

Raki's notes on reading paper: named entity recognition as dependency parsing

IDEA 远程调试 Remote JVM Debug

LeetCode 3. Longest substring without duplicate characters

Use compose to realize the effect of selecting movie seats by panning tickets

2. 成功解决 BUG:Exception when publishing, ...[Failed to connect and initialize SSH connection...

O & M (20) make and start USB flash disk and install win10
随机推荐
原生JS怎么生成九宫格
What are the three paradigms of database
Formal and actual parameters, value passing and address passing
Comparable和Comparator的区别
中断操作:AbortController学习笔记
Raki's notes on reading paper: Leveraging type descriptions for zero shot named entity recognition and classification
(图论) 连通分量(模板) + 强连通分量(模板)
JvxeTable子表记录加载完毕事件
Recursion frog jumping steps problem
Cross domain, CORS, jsonp
【微信小程序】条件渲染 列表渲染 原来这样用?
Welfare lottery | what are the highlights of open source enterprise monitoring zabbix6.0
Which is a good foreign exchange trading platform? Is it safe to have regulated funds?
Time complexity analysis
High paid programmers & interview questions series 63: talk about the differences between sleep (), yield (), join (), and wait ()
Wechat applet +php to realize authorized login operation
编译一个无导入表的DLL
How does native JS generate Jiugong lattice
约瑟夫环 数学解法
Summary of knowledge points about eigenvalues and eigenvectors of matrices in Chapter 5 of Linear Algebra (Jeff's self perception)