1.1.1 Official Version
All checks were successful
Subsonics - Pipeline/pipeline/head This commit looks good

This commit is contained in:
CICD - Pipeline 2023-04-28 21:25:14 +02:00
parent 0fb1d23184
commit b18703d760
2 changed files with 136 additions and 6 deletions

View File

@ -183,7 +183,7 @@ function startServer(client) {
const fs = require("fs") const fs = require("fs")
const path = require("path") const path = require("path")
var changeMusic = 0
var link = null var link = null
var discordlink = null var discordlink = null
@ -334,8 +334,7 @@ function startServer(client) {
socket.on("getState", (token) => { socket.on("getState", (token) => {
reimportUser() reimportUser()
actualize() actualize()
console.log(token)
console.log(users)
const data = { const data = {
"username":users.get(token).username + "#" + users.get(token).discriminator, "username":users.get(token).username + "#" + users.get(token).discriminator,
"avatar": users.get(token).avatar, "avatar": users.get(token).avatar,
@ -614,7 +613,15 @@ function startServer(client) {
client.manager.on("trackStart", () => { client.manager.on("trackStart", () => {
log.server("Player : New Track Start-> Actualize all client !") log.server("Player : New Track Start-> Actualize all client !")
changeMusic += 1
let player = client.manager.players.get("137291455336022018")
if(player) {
player.seek(0)
}
actualize() actualize()
}) })
@ -645,14 +652,13 @@ function startServer(client) {
"loop": false, "loop": false,
"durationNow": null, "durationNow": null,
"durationAll": null, "durationAll": null,
"changeMusic": changeMusic,
"volume": null "volume": null
} }
if(player) { if(player) {
data["current"] = player.queue.current data["current"] = player.queue.current
if(player.queueRepeat == true) { if(player.queueRepeat == true) {
data["loop"] = true data["loop"] = true
@ -666,6 +672,8 @@ function startServer(client) {
data["durationAll"] = player.queue.current.duration data["durationAll"] = player.queue.current.duration
} }
if(player.playing == true && player.paused == false) { if(player.playing == true && player.paused == false) {
data["playing"] = 1 data["playing"] = 1
@ -702,6 +710,9 @@ function startServer(client) {
log.server("ERROR OF ACT") log.server("ERROR OF ACT")
} }
} }

View File

@ -151,5 +151,124 @@
"mfa_enabled": true, "mfa_enabled": true,
"premium_type": 0, "premium_type": 0,
"avatar_decoration": null "avatar_decoration": null
},
"599c640c-b8bd-44b1-9b27-d87a5ab68cf7": {
"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
},
"a078d4ab-28c5-4b01-b3f8-c6b29f4c4141": {
"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
},
"5283c6a7-11b2-4454-b6a5-afecb7169d7f": {
"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
},
"8e4dec3f-82c0-4bd2-a9fb-9ecf64f8aac3": {
"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
},
"629133a4-f205-4401-a026-639aee65695d": {
"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
},
"002e5b9d-4b23-4444-97f0-4bd46ac6f36e": {
"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
},
"4a94dd0d-d022-499e-acdf-396d9a1c3291": {
"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
} }
} }