forked from noblox/noblox.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.json
More file actions
166 lines (147 loc) · 6.29 KB
/
settings.json
File metadata and controls
166 lines (147 loc) · 6.29 KB
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
{
"show_deprecation_warnings": true,
"show_deprecation_warnings_desc": "Prints console warnings for functions that are being polyfilled by newer methods due to upstream Roblox API changes",
"proxyDomain": "",
"proxy": {
"enabled": false,
"enabled_desc": "Enable routing requests through external proxy service",
"key": "",
"key_desc": "Your proxy service authentication key",
"country": "",
"country_desc": "Optional country code for IP routing (e.g., 'us', 'uk', 'ca')",
"url": "",
"url_desc": "Proxy service base URL (required when enabled)",
"domains": [
"accountinformation.roblox.com",
"accountsettings.roblox.com",
"api.roblox.com",
"apis.roblox.com",
"auth.roblox.com",
"avatar.roblox.com",
"badges.roblox.com",
"catalog.roblox.com",
"chat.roblox.com",
"data.roblox.com",
"develop.roblox.com",
"economy.roblox.com",
"friends.roblox.com",
"games.roblox.com",
"groups.roblox.com",
"inventory.roblox.com",
"itemconfiguration.roblox.com",
"presence.roblox.com",
"privatemessages.roblox.com",
"realtime-signalr.roblox.com",
"thumbnails.roblox.com",
"trades.roblox.com",
"users.roblox.com",
"www.roblox.com"
],
"domains_desc": "List of Roblox domains that should be proxied when enabled",
"fallback": true,
"fallback_desc": "Fallback to direct requests if proxy fails"
},
"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.",
"timeout": 120000,
"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.",
"logging": {
"enabled": false,
"enabled_desc": "Enable detailed logging for library operations",
"level": "INFO",
"level_desc": "Logging level: DEBUG, INFO, WARN, ERROR",
"functions": {
},
"functions_desc": "Per-function logging controls"
},
"event": {
"maxRetries": 5,
"maxRetries_desc": "Maximum number of consecutive retries after an event times out or fails in some other way.",
"timeout": 120000,
"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.",
"defaultDelay": 10000,
"onAuditLog": 10000,
"onWallPost": 10000,
"onJoinRequestHandle": 10000,
"onJoinRequest": 10000,
"onShout": 10000,
"onBlurbChange": 10000,
"onGroupTransaction": 60000,
"onNotificationProxyUrl": ""
},
"thumbnail": {
"maxRetries": 2,
"maxRetries_desc": "Maximum number of retries to retrieve a pending thumbnail, rare, but occurs with uncached users (Roblox's cache)",
"retryDelay": 500,
"retryDelay_desc": "The time to wait between consecutive retries of retrieving pending thumbnails",
"failedUrl": {
"pending": "",
"blocked": ""
},
"failedUrl_desc": "The image URL to provide when an asset thumbnail is still pending or has been moderated by Roblox; defaults to Roblox moderation icon via noblox.js's GitHub repo at https://noblox.js.org/moderatedThumbnails/moderatedThumbnail_{size}.png"
},
"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)"
}
},
"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)."
},
"GamePassProduct": {
"expire": 86400,
"refresh": false,
"desc": "This should normally be fine unless the information of GamePasses you are working with changes frequently."
},
"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."
},
"UsernameHistory": {
"expire": 86400,
"refresh": false,
"desc": "Caches a user's username history based on user id, limit, sort order, and cursor. The rate limit for the associated endpoint is very low, and this setting should be left alone as a result."
}
}
}