]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
15
authorqydysky <qydysky@foxmail.com>
Sun, 20 Sep 2020 05:48:27 +0000 (13:48 +0800)
committerqydysky <qydysky@foxmail.com>
Sun, 20 Sep 2020 05:48:27 +0000 (13:48 +0800)
.gitignore
F.go
demo/Autoban.txt [new file with mode: 0644]
msg_sample/SPECIAL_GIFT.json [new file with mode: 0644]
msg_sample/WIN_ACTIVITY.json [new file with mode: 0644]

index 4c635dbc1d2ed87042076ee8607ce0b695d0201c..71ab15ae6306a9c6171c07faf0fbc6bb92a67905 100644 (file)
@@ -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 9f2a5e0e8f94ef5465136452f090cebf03e52e80..fb934b2bf2945d4a0eb60a07f0810158861b9854 100644 (file)
--- 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 (file)
index 0000000..5561f9a
--- /dev/null
@@ -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 (file)
index 0000000..e2445b3
--- /dev/null
@@ -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 (file)
index 0000000..82ad803
--- /dev/null
@@ -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