当前位置:网站首页>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目录下的文件都是主要功能的实现。
展示一下
没开播,自己和自己玩的截图...

边栏推荐
- 自定义MVC的使用
- New edition of diazotization process in 2022 and analysis of diazotization process
- LeetCode 3. Longest substring without duplicate characters
- IDEA 远程调试 Remote JVM Debug
- 【微信小程序】条件渲染 列表渲染 原来这样用?
- Functions in C language
- 快速排序、聚簇索引、尋找數據中第k大的值
- Summary of PHP test sites encountered in CTF questions (I)
- How to use redis to realize the like function
- Use of Arthas
猜你喜欢

uniapp 地址转换经纬度

【实战技能】如何撰写敏捷开发文档

How to set password complexity and timeout exit function in Oracle

DC/DC变换器轻载时三种工作模式的原理及优缺点

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

Call collections Sort() method, compare two person objects (by age ratio first, and by name ratio for the same age), and pass lambda expression as a parameter.

LeetCode 3. 无重复字符的最长子串

【微信小程序】条件渲染 列表渲染 原来这样用?

Distributed file system fastdfs

oracle怎么设置密码复杂度及超时退出的功能
随机推荐
Differences between comparable and comparator
Mysql表数据比较大情况下怎么修改添加字段
怎么使用Vant实现数据分页和下拉加载
炒现货黄金的交易平台如何保障资金安全?
Série de tutoriels cmake - 02 - génération de binaires à l'aide du Code cmake
WPF Initialized事件在.cs中绑定不被触发的原因
CMake教程系列-01-最小配置示例
2. successfully solved bug:exception when publishing [Failed to connect and initialize SSH connection...
简单自定义MVC优化
OP-diode-限制摆幅
Linear algebra Chapter 4 Summary of knowledge points of linear equations (Jeff's self perception)
Distributed file storage system fastdfs hands on how to do it
身份证号的严谨判断精确到队后一位
Cmake tutorial series-01-minimum configuration example
Simulate activity startup mode in compose
How to modify and add fields when MySQL table data is large
Customize the buttons of jvxetable and the usage of $set under notes
发现mariadb数据库时间晚了12个小时
Distributed file system fastdfs
HTA入门基础教程 | VBS脚本的GUI界面 HTA简明教程 ,附带完整历程及界面美化