forked from sentanos/roblox-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.json
90 lines (77 loc) · 3.77 KB
/
settings.json
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
{
"session_only": true,
"session_only_desc": "Minimizes data usage and speed up requests by only saving session cookies, disable if you need other cookies to be saved as well.",
"maxThreads": 50,
"maxThreads_desc": "This is usually used for functions that have to receive a lot of pages at once. Only this amount will be queued up as to preserve memory, make this as high as possible for fastest responses (although it will be somewhat limited by maxSockets).",
"timeout": 10000,
"timeout_desc": "Timeout for http requests. This is necessary for functions that make a very large number of requests, where it is possible some simply won't connect.",
"event": {
"maxRetries": 5,
"maxRetries_desc": "Maximum number of consecutive retries after an event times out or fails in some other way.",
"timeout": 3000,
"timeout_desc": "Maximum time (in milliseconds) a request can take. If your server has extremely high latency you may have to raise this.",
"event_desc": "Below is the poll time (in milliseconds) for each of the event functions. A lower number will detect changes much quicker but will stress the network, a higher one does the opposite.",
"onForumReply": 3000,
"onForumPost": 3000,
"onWallPost": 3000,
"onJoinRequestHandle": 3000,
"onShout": 3000
},
"queue": {
"Message": {
"delay": 0,
"desc": "Although messages do have a floodcheck, it is not instituted immediately so this is disabled by default. If you are sending a lot of messages set a delay around 10-15 seconds (10000-15000)"
},
"Forum": {
"delay": 15000,
"desc": "All forum posts have a mandatory 15 second delay, there is no reason for this to be disabled"
}
},
"cache": {
"XCSRF": {
"expire": 1800,
"refresh": false,
"desc": "XCSRF tokens expire 30 minutes after being created. Until they expire, however, no new tokens can be made. Sometimes an XCSRF token has already been created for the user so the server doesn't know when to collect a new one. During transitions some requests may use invalid tokens. For now, new XCSRF tokens are automatically retrieved when cached ones get rejected."
},
"Verify": {
"expire": 7200,
"refresh": 3600,
"desc": "Verification tokens seem to last extremely long times."
},
"Roles": {
"expire": 600,
"refresh": true,
"desc": "This should be fine unless your group changes its ranks often."
},
"RolesetId": {
"expire": 86400,
"refresh": false,
"desc": "Disable this completely if you don't plan on ever changing your exile bot's rank."
},
"Product": {
"expire": false,
"refresh": false,
"desc": "Disabled by default for security (price checks). If you are only working with ROBLOX assets, however, you can set this to something high (since ROBLOX product info rarely changes)."
},
"NameFromID": {
"expire": false,
"refresh": false,
"desc": "Caches a user's username based on their ID. It is not on by default because it is an uncontrollable change but the option is there to cache it if you would like."
},
"IDFromName": {
"expire": true,
"refresh": false,
"desc": "Permanent cache for a user's ID based on their name. There is no reason this would ever change (changing names would re-match it and old names cannot be reused by other accounts). Only disable if you want this to match current names only."
},
"SenderID": {
"expire": true,
"refresh": false,
"desc": "Permanent cache for the sender's user ID. This should literally never change."
},
"Rank": {
"expire": false,
"refresh": false,
"desc": "Caches rank by user ID. Changes cannot be anticipated so this is not enabled by default."
}
}
}