This commit is contained in:
		@@ -42,8 +42,6 @@ module.exports = {
 | 
			
		||||
                }
 | 
			
		||||
            ];
 | 
			
		||||
  
 | 
			
		||||
        
 | 
			
		||||
              
 | 
			
		||||
            client.manager.createNode(nodes)
 | 
			
		||||
            
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										49
									
								
								src/main.js
									
									
									
									
									
								
							
							
						
						
									
										49
									
								
								src/main.js
									
									
									
									
									
								
							@@ -435,6 +435,55 @@ function startServer(client) {
 | 
			
		||||
 | 
			
		||||
        })
 | 
			
		||||
 | 
			
		||||
        socket.on("report", (token, report) => {
 | 
			
		||||
            if(users.has(token)) {
 | 
			
		||||
 | 
			
		||||
                const { EmbedBuilder } = require("discord.js")
 | 
			
		||||
                
 | 
			
		||||
                log.server("Bug report demandé par " + users.get(token).username + "#" +  users.get(token).discriminator)
 | 
			
		||||
                var embed = null
 | 
			
		||||
 | 
			
		||||
                if(report.type == "Bug") {
 | 
			
		||||
                    embed = new EmbedBuilder()
 | 
			
		||||
                    .setColor(0xff0000)
 | 
			
		||||
                    .setTitle('Bug report de ' +  users.get(token).username + "#" +  users.get(token).discriminator)
 | 
			
		||||
                    .setDescription('**Version **' + report.version)
 | 
			
		||||
                    .addFields({name: "Description", value: report.text})
 | 
			
		||||
                    .setTimestamp();
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
                } else {
 | 
			
		||||
                    embed = new EmbedBuilder()
 | 
			
		||||
                    .setColor(0x0000ff)
 | 
			
		||||
                    .setTitle('Suggestion de ' +  users.get(token).username + "#" +  users.get(token).discriminator)
 | 
			
		||||
                    .setDescription('**Version **' + report.version)
 | 
			
		||||
                    .addFields({name: "Description", value: report.text})
 | 
			
		||||
                    .setTimestamp();
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                
 | 
			
		||||
                sendReport()
 | 
			
		||||
                async function sendReport() {
 | 
			
		||||
                    const channel = await client.channels.fetch('1102177962817749033')
 | 
			
		||||
 | 
			
		||||
                    channel.send({embeds: [embed]})
 | 
			
		||||
                    channel.send({content: "<@486943594893017119>"})
 | 
			
		||||
               
 | 
			
		||||
                }
 | 
			
		||||
                socket.emit("reportAns", true)
 | 
			
		||||
                actualize()
 | 
			
		||||
            } else {
 | 
			
		||||
 | 
			
		||||
                socket.emit("authFailed")
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
        })
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        socket.on("deleteQueue", (token, identifier) => {
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										119
									
								
								src/tokens.json
									
									
									
									
									
								
							
							
						
						
									
										119
									
								
								src/tokens.json
									
									
									
									
									
								
							@@ -219,5 +219,124 @@
 | 
			
		||||
    "mfa_enabled": true,
 | 
			
		||||
    "premium_type": 0,
 | 
			
		||||
    "avatar_decoration": null
 | 
			
		||||
  },
 | 
			
		||||
  "b3a615fc-3550-4012-a769-589ca46c2f1a": {
 | 
			
		||||
    "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
 | 
			
		||||
  },
 | 
			
		||||
  "1aa94dd6-5b28-4505-b8ab-17a29b651325": {
 | 
			
		||||
    "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
 | 
			
		||||
  },
 | 
			
		||||
  "3daea0ef-f237-41b2-b711-37177ce7ac80": {
 | 
			
		||||
    "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
 | 
			
		||||
  },
 | 
			
		||||
  "1ea2812e-2af7-414e-ad3c-fd0c20b74746": {
 | 
			
		||||
    "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
 | 
			
		||||
  },
 | 
			
		||||
  "f1562014-d19c-4e83-bbe2-30c62a23af24": {
 | 
			
		||||
    "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
 | 
			
		||||
  },
 | 
			
		||||
  "6814dead-1a58-44bf-9b65-d20803df3d4b": {
 | 
			
		||||
    "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
 | 
			
		||||
  },
 | 
			
		||||
  "1e7c5225-13ea-4451-86be-e57a6c495229": {
 | 
			
		||||
    "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
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user