Skip to content

Commit 4b8cc50

Browse files
committed
update: 调整一些内容
1 parent 52a5787 commit 4b8cc50

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ danmaku.stt = require('./stt')
55
danmaku.util = require('./util')
66
danmaku.logger = require('./logger')
77
danmaku.Websocket = require('./websocket')
8+
danmaku.packet = require('./packet')
89

910
module.exports = danmaku

src/messageEvent.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ module.exports = {
7070
// type 表示为“房间开播提醒”消息,固定为 rss
7171
// rid 房间 id
7272
// gid 弹幕分组 id
73-
// ss 直播状态,0-没有直播,1-正在直播
73+
// ss 直播状态,1-正在直播, 2-没有直播
7474
// code 类型
7575
// rt 开关播原因:0-主播开关播,其他值-其他原因
7676
// notify 通知类型
7777
// endtime 关播时间(仅关播时有效)
78-
console.log(r.ss ? config.MSG_LIVE_ON : config.MSG_LIVE_OFF)
78+
console.log('[开播提醒]', r.ss == 1 ? config.MSG_LIVE_ON : config.MSG_LIVE_OFF)
7979
},
8080
bc_buy_deserve: function (r) {
8181
// 赠送酬勤通知
@@ -244,6 +244,6 @@ module.exports = {
244244
// 未知的消息事件
245245
},
246246
frank: function(r) {
247-
// 未知的消息事件
247+
// 粉丝排行榜变化
248248
},
249249
}

0 commit comments

Comments
 (0)