This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathREADME.md.bak
172 lines (114 loc) · 3.89 KB
/
README.md.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# SuperSpider
[走召虫——BiliBili SuperChat 爬虫](https://docs.bilisc.com/)
![Annotation 2019-09-28 202251](https://user-images.githubusercontent.com/20179549/65817757-acb5f880-e23d-11e9-93c6-e5ff445b9880.png)
## 端口表
| APP | PORT |
| ------- | ---- |
| DB | 2161 |
| Core | 2162 |
| ANA | 2163 |
| Website | 2164 |
| AtHome | 2165 |
| MDB | 2166 |
## 数据格式(SCDB/TXTDB)
除`ADB`中的数据为`ID:UID:TS(时间戳):内容`之外,其他数据格式均为`ID:房间号:UID:TS(时间戳):内容`。
## 数据格式(ADB/MongoDB)
`mongodb://172.18.0.1:27017/amdb/maindb`
```json with comments
{
"_id": 1,
"status": 0,
// 0: 没有该项数据
// 1: 仅有id和roomid
// 2: 没有机翻
// 3: 数据完整
// 4: 人工翻译
"roomid": 1,
"livets": 10000,
"ts": 10000,
"uname": "用户名",
"unamejpn": "名前",
"avatar": "https://static.hdslb.com/images/member/noface.gif",
"price": 30,
"msg": "",
"msgjpn": "",
"msgtr": "",
// 冻肉
"trstatus": 0,
// 翻译者鉴权
"bcolor": "",
"pcolor": "",
"exrate": "",
"hide": 0
}
```
## 送礼物/上舰数据格式(PreDB)
`mongodb://172.18.0.1:27017/amdb/predb`
```json with comments
{
"_id": "ObjectId()",
"type": 0,
// 0: 预留
// 1: 总督
// 2: 提督
// 3: 舰长
// 4: 金瓜子礼物
"roomid": 1,
"livets": 10000,
"ts": 10000,
"uname": "用户名",
"unamejpn": "名前",
"avatar": "https://static.hdslb.com/images/member/noface.gif",
"price": 30,
"exrate": "",
"hide": 0,
"gift": "辣条",
"num": 1
}
```
## Deploy
### ANA
Run using:
`docker run -d -p 2163:2163 -v /scdb:/scdb -e MONGODB_PASS=PASS -e MONGODB_IP=IP afanyiyu/superspider-ana`
Internal build using:
`docker build -t afanyiyu/superspider-ana github.com/dd-center/SuperSpider#master:packages/superspider-ana`
### DB
Run using:
`docker run -d -p 2161:2161 -v /scdb:/scdb afanyiyu/superspider-db`
Internal build using:
`docker build -t afanyiyu/superspider-db github.com/dd-center/SuperSpider#master:packages/superspider-db`
### MDB
Run using:
`docker run -d -p 2165:2165 -p 2166:2166 -v /scdb:/scdb -e MONGODB_PASS=PASS -e MONGODB_IP=IP afanyiyu/superspider-mdb`
Internal build using:
`docker build -t afanyiyu/superspider-mdb github.com/dd-center/SuperSpider#master:packages/superspider-mdb`
### PreDB
Run using:
`docker run -d -p 2165:2165 -p 2166:2166 -e MONGODB_PASS=PASS -e MONGODB_IP=IP afanyiyu/superspider-predb`
Internal build using:
`docker build -t afanyiyu/superspider-predb github.com/dd-center/SuperSpider#master:packages/superspider-predb`
### Core
Run using:
`docker run -d -p 2162:2162 -v /scdb:/scdb afanyiyu/superspider-core`
Internal build using:
`docker build -t afanyiyu/superspider-core github.com/dd-center/SuperSpider#master:packages/superspider-core`
### MCore
Run using:
`docker run -d -p 2162:2162 -e MONGODB_PASS=PASS -e MONGODB_IP=IP afanyiyu/superspider-mcore`
Internal build using:
`docker build -t afanyiyu/superspider-mcore github.com/dd-center/SuperSpider#master:packages/superspider-mcore`
### Website
Run using:
`docker run -d -p 2164:2164 afanyiyu/superspider-showcase`
Internal build using:
`docker build -t afanyiyu/superspider-showcase github.com/dd-center/SuperSpider#master:packages/superspider-showcase`
### AtHome
Run using:
`docker run -d afanyiyu/superspider-athome`
Internal build using:
`docker build -t afanyiyu/superspider-athome github.com/dd-center/SuperSpider#master:packages/superspider-athome`
## 捐赠
您的捐赠是对该项目及我本人的支持。本项目获得的所有捐赠将会全部用于服务器的维护。
![Alipay](https://raw.githubusercontent.com/dd-center/SuperSpider/master/docs/pay/Alipay.jpg)
![Wechat](https://raw.githubusercontent.com/dd-center/SuperSpider/master/docs/pay/Wechat.png)
![WechatReward](https://raw.githubusercontent.com/dd-center/SuperSpider/master/docs/pay/WechatReward.png)