From: qydysky Date: Sun, 20 Sep 2020 05:48:27 +0000 (+0800) Subject: 15 X-Git-Tag: v0.0.0~28 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=a5eef9b9c403dcabb87d980a5a31a813ff220460;p=bili_danmu%2F.git 15 --- diff --git a/.gitignore b/.gitignore index 4c635db..71ab15a 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,5 @@ a.json demo/cookie.txt player-loader-2.0.4.min.js pv-tracker.js -demo/Autoban.txt demo/his/*.log danmu.log -msg_sample/*.json diff --git a/F.go b/F.go index 9f2a5e0..fb934b2 100644 --- a/F.go +++ b/F.go @@ -334,6 +334,7 @@ var jiezou = Jiezou{ "了":nil, "的":nil, "哈":nil, + "是":nil, }, } diff --git a/demo/Autoban.txt b/demo/Autoban.txt new file mode 100644 index 0000000..5561f9a --- /dev/null +++ b/demo/Autoban.txt @@ -0,0 +1,10 @@ +护士 +群 +学妹 +品屎 +娘炮 +呦钕 +菜 +垃圾 +媳妇的妹换衣服 点我免费 +0123456789 \ No newline at end of file diff --git a/msg_sample/SPECIAL_GIFT.json b/msg_sample/SPECIAL_GIFT.json new file mode 100644 index 0000000..e2445b3 --- /dev/null +++ b/msg_sample/SPECIAL_GIFT.json @@ -0,0 +1,25 @@ +[ + { + "cmd": "SPECIAL_GIFT", + "data": { + "39": { + "action": "start", + "content": "阿C在!爱一直在!", + "hadJoin": 0, + "id": "2947533009549", + "num": 1, + "storm_gif": "http://static.hdslb.com/live-static/live-room/images/gift-section/mobilegift/2/jiezou.gif?2017011901", + "time": 90 + } + } + }, + { + "cmd": "SPECIAL_GIFT", + "data": { + "39": { + "action": "end", + "id": 2947192670802 + } + } + } +] \ No newline at end of file diff --git a/msg_sample/WIN_ACTIVITY.json b/msg_sample/WIN_ACTIVITY.json new file mode 100644 index 0000000..82ad803 --- /dev/null +++ b/msg_sample/WIN_ACTIVITY.json @@ -0,0 +1,44 @@ +{ + "cmd": "WIN_ACTIVITY", + "number": 4, + "data": { + "delay_time_min": 0, + "delay_time_max": 30, + "activity_id": 642, + "jump_url": "https:\/\/live.bilibili.com\/p\/html\/live-app-treasurebox\/index.html?is_live_half_webview=1&hybrid_biz=live-app-treasurebox&hybrid_rotate_d=1&hybrid_half_ui=1,3,100p,70p,0,0,30,100;2,2,375,100p,0,0,30,100;3,3,100p,70p,0,0,30,100;4,2,375,100p,0,0,30,100;5,3,100p,70p,0,0,30,100;6,3,100p,70p,0,0,30,100;7,3,100p,70p,0,0,30,100&aid=642", + "weight": 20, + "closeable": 0, + "title": "\u8363\u8000\u5b9d\u7bb1\u62bd\u5956", + "title_color": "#FFFFFF", + "activity_pic": "https:\/\/i0.hdslb.com\/bfs\/live\/c3ed87683f6e87d256d1f5fdddbfb220fc4c2cdf.png", + "background": "https:\/\/i0.hdslb.com\/bfs\/live\/84cd59bcb1e977359df618dbeb0f7828751f457c.png", + "current_round": 4, + "typeB": [ + { + "join_start_time": 1600236600, + "join_end_time": 1600237800, + "round_num": 1 + }, + { + "join_start_time": 1600237800, + "join_end_time": 1600239600, + "round_num": 2 + }, + { + "join_start_time": 1600239600, + "join_end_time": 1600241400, + "round_num": 3 + }, + { + "join_start_time": 1600241400, + "join_end_time": 1600243200, + "round_num": 4 + }, + { + "join_start_time": 1600243200, + "join_end_time": 1600245000, + "round_num": 5 + } + ] + } +} \ No newline at end of file