Fix Discord Request Implements #3
All checks were successful
Subsonics - Pipeline/pipeline/head This commit looks good
All checks were successful
Subsonics - Pipeline/pipeline/head This commit looks good
This commit is contained in:
parent
e9c35e11bd
commit
1be1f65453
15
src/main.js
15
src/main.js
@ -676,7 +676,7 @@ function startServer(client) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function addIdentity(response, token, socket) {
|
async function addIdentity(response, token, socket) {
|
||||||
|
|
||||||
|
|
||||||
console.log(response)
|
console.log(response)
|
||||||
@ -690,8 +690,16 @@ function startServer(client) {
|
|||||||
|
|
||||||
tokens[token] = response
|
tokens[token] = response
|
||||||
|
|
||||||
fs.writeFileSync(__dirname + path.sep + "tokens.json", JSON.stringify(tokens, null, 2))
|
await fs.writeFileSync(__dirname + path.sep + "tokens.json", JSON.stringify(tokens, null, 2))
|
||||||
|
|
||||||
|
await addAllUsers()
|
||||||
|
|
||||||
|
actualize()
|
||||||
|
authTokenWait.delete(token)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function addAllUsers() {
|
||||||
|
|
||||||
users = new Map()
|
users = new Map()
|
||||||
for(var user in tokens) {
|
for(var user in tokens) {
|
||||||
@ -699,9 +707,6 @@ function startServer(client) {
|
|||||||
users.set(user , tokens[user])
|
users.set(user , tokens[user])
|
||||||
}
|
}
|
||||||
|
|
||||||
actualize()
|
|
||||||
authTokenWait.delete(token)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
443
src/tokens.json
443
src/tokens.json
@ -1,444 +1,3 @@
|
|||||||
{
|
{
|
||||||
"7967c971-be8b-4906-a6dc-d4f5ffd2c1f5": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"b6e769dc-5775-45c7-809a-136e2f5b8fa7": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"6b349836-c482-4f0d-bdc1-97311ac7f252": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"737136a0-0415-48d7-ac4d-21276abcf241": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"9f987ae3-77b1-4218-b294-233b47fe1f87": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"de66945f-3da6-45dc-b427-e7999bad8ef5": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"6aa6df7d-21a2-46be-bb11-d9c9874f8a90": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"b8614915-1bf9-4fac-980a-8a1546a7e0ae": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"23d19191-73dd-43d5-ae64-32b4108f23ea": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"a23b262e-6d0d-4677-8791-4e68e5a3af11": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"d5cdcfb5-f975-4f6a-accd-8085abb6ec23": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"54172611-50d2-4b31-a108-dc73df49af2d": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"5a1f8903-bcac-4921-978d-2460c0a999ff": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"8eedcc5b-df61-4ed3-87b3-1c2152e352b0": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"e29035a5-7992-468b-a93f-e555506e54e2": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"0832a777-15e4-4aff-861b-1d77883e381d": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"013cf605-cad4-47c8-b857-028db1f39cdc": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"afef2df3-07ba-403f-91b3-5fbeede287b7": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"50de6e68-3b22-45af-a3bd-a8f7ec99ff14": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"a5412bf9-a037-4f88-bdd2-f779d717fa61": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"2439c964-c1a4-45f3-92fd-708725b1058c": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"b9e39305-720e-4dcc-922d-a42b5acb7fd1": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"418e8f4c-30dd-468a-b2f3-92a083b63d55": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"b2dbd3f7-b7a5-457d-b8a1-5bc48ed2f404": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"aea12781-56a8-4c2c-b301-59a7dd51f2a2": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
},
|
|
||||||
"95d18ce3-7cab-4926-bc87-e199fa3d7ab6": {
|
|
||||||
"id": "486943594893017119",
|
|
||||||
"username": "Raphix",
|
|
||||||
"global_name": null,
|
|
||||||
"display_name": null,
|
|
||||||
"avatar": "883ec1a7136b0aa3c22e4bdc33e278e5",
|
|
||||||
"discriminator": "8434",
|
|
||||||
"public_flags": 4194368,
|
|
||||||
"flags": 4194368,
|
|
||||||
"banner": null,
|
|
||||||
"banner_color": "#ff4d4d",
|
|
||||||
"accent_color": 16731469,
|
|
||||||
"locale": "fr",
|
|
||||||
"mfa_enabled": true,
|
|
||||||
"premium_type": 0,
|
|
||||||
"avatar_decoration": null
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user