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

边栏推荐
- CMake教程系列-05-选项及变量
- Idea remote debugging remote JVM debug
- CMake教程系列-02-使用cmake代码生成二进制
- Azure 开发者新闻快讯丨开发者6月大事记一览
- What about punctuation in the first column of unity text
- 什么是外链和内链?
- SQLite use
- Three solutions to forced hibernation of corporate computers
- Formal and actual parameters, value passing and address passing
- [live broadcast notes 0629] Concurrent Programming II: lock
猜你喜欢

中断操作:AbortController学习笔记

Recursion frog jumping steps problem

Cross domain, CORS, jsonp

Wechat applet page Jump and parameter transfer

IDEA 远程调试 Remote JVM Debug

GTK interface programming (I): Environment Construction

Heavy attack -- ue5's open source digital twin solution

What is the difference between a layer 3 switch and a layer 2 switch

Visual HTA form designer htamaker interface introduction and usage, Download | HTA VBS visual script writing

【微信小程序】条件渲染 列表渲染 原来这样用?
随机推荐
【微信小程序】条件渲染 列表渲染 原来这样用?
CMake教程系列-04-编译相关函数
Wechat applet +php to realize authorized login operation
SQLite use
c#控制台格式化代码
2. 成功解决 BUG:Exception when publishing, ...[Failed to connect and initialize SSH connection...
Wechat applet page Jump and parameter transfer
Software testing skills, JMeter stress testing tutorial, transaction controller of logic controller (25)
MySQL extracts strings from table fields
Which is a good foreign exchange trading platform? Is it safe to have regulated funds?
个人PC安装软件
LeetCode 3. 无重复字符的最长子串
LeetCode 3. Longest substring without duplicate characters
Some technology sharing
Visual HTA form designer htamaker interface introduction and usage, Download | HTA VBS visual script writing
2022 the action of protecting the net is imminent. Things about protecting the net
Cmake tutorial series -02- generating binaries using cmake code
中断操作:AbortController学习笔记
Lua 基础知识
How to switch ipykernel to a different CONDA virtual environment in jupyterlab?