当前位置:网站首页>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目錄下的文件都是主要功能的實現。
展示一下
沒開播,自己和自己玩的截圖...

边栏推荐
- Use compose to realize the effect of selecting movie seats by panning tickets
- 2022 underground coal mine electrical test and underground coal mine electrical simulation test
- How to prevent duplicate submission under concurrent requests
- zabbix 触发器详解
- Cmake tutorial series -04- compiling related functions
- Template parameter package and function parameter package
- uniapp 地址转换经纬度
- Summary of PHP test sites encountered in CTF questions (I)
- Raki's notes on reading paper: named entity recognition as dependency parsing
- Software testing skills, JMeter stress testing tutorial, transaction controller of logic controller (25)
猜你喜欢

HTA introductory basic tutorial | GUI interface of vbs script HTA concise tutorial, with complete course and interface beautification

The MariaDB database was found 12 hours late

Cmake tutorial series -02- generating binaries using cmake code

Unity3d ugui force refresh of layout components

How to use vant to realize data paging and drop-down loading

如何在 JupyterLab 中把 ipykernel 切换到不同的 conda 虚拟环境?

OP-diode-限制摆幅

Study diary: February 15, 2022

HTA入门基础教程 | VBS脚本的GUI界面 HTA简明教程 ,附带完整历程及界面美化

【微信小程序】条件渲染 列表渲染 原来这样用?
随机推荐
The MariaDB database was found 12 hours late
2. 成功解决 BUG:Exception when publishing, ...[Failed to connect and initialize SSH connection...
备忘一下es6的export/import和类继承的用法
Raki's notes on reading paper: Leveraging type descriptions for zero shot named entity recognition and classification
通用分页(2)
福利抽奖 | 开源企业级监控Zabbix6.0都有哪些亮点
链接乱码转义符
What is the difference between a layer 3 switch and a layer 2 switch
并发请求下如何防重复提交
个人PC安装软件
Federal learning: dividing non IID samples by Dirichlet distribution
快速排序、聚簇索引、尋找數據中第k大的值
What are the three paradigms of database
Raki's notes on reading paper: named entity recognition as dependency parsing
Cross domain, CORS, jsonp
Servlet interview questions
2022 new test questions for safety management personnel of metal and nonmetal mines (small open pit quarries) and certificate examination for safety management personnel of metal and nonmetal mines (s
Welfare lottery | what are the highlights of open source enterprise monitoring zabbix6.0
How to use vant to realize data paging and drop-down loading
Idea remote debugging remote JVM debug