Skip to content

Commit 93313e1

Browse files
committed
option uuid
1 parent 520985f commit 93313e1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

index.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ Options:
1717
--interval=<time> Interval to pull tasks (ms).
1818
[env: INTERVAL] [default: 1280]
1919
20-
--ws-limit=<limit> Limit of WebSocket connections to live.bilibili.com
20+
--ws-limit=<limit> Limit of WebSocket connections to live.bilibili.com.
2121
[env: LIMIT]
22+
23+
--uuid=<uuid> UUID for stats tracking.
24+
[env: UUID]
2225
2326
--no-dns-cache Disable DNS cache
2427
[env: NO_DNS_CACHE]
@@ -40,6 +43,7 @@ start({
4043
anonymous: args['--anonymous'],
4144
nickname: args['--nickname'],
4245
limit: args['--ws-limit'],
46+
uuid: args['--uuid'],
4347
noDnsCache: args['--no-dns-cache'],
4448
verbose: process.env.development || args['--verbose']
4549
})
@@ -50,6 +54,7 @@ function start({
5054
anonymous = false,
5155
nickname,
5256
limit = Infinity,
57+
uuid,
5358
noDnsCache = false,
5459
verbose = false
5560
}) {
@@ -77,6 +82,9 @@ function start({
7782
if (process.env.docker) {
7883
url.searchParams.set('docker', 'docker')
7984
}
85+
if (uuid) {
86+
url.searchParams.set('uuid', uuid)
87+
}
8088
}
8189

8290
if (nickname) {

0 commit comments

Comments
 (0)