diff --git a/commands/jeux/machine-a-sous.js b/commands/jeux/machine-a-sous.js index 9ecb7c2..544b776 100644 --- a/commands/jeux/machine-a-sous.js +++ b/commands/jeux/machine-a-sous.js @@ -77,7 +77,7 @@ module.exports = { const embed = new EmbedBuilder() .setTitle('🪙 Machine à sous') .setImage('https://ptb.discord.com/channels/1244326671260319904/1244775600695148564/1245137950904156242') - .setDescription(`Vous avez misé \`${args[0]}\`. Les chiffres deffilent...\nRésultat dans 5 secondes...`) + .setDescription(`Vous avez misé \`${args[0]}\`. Les chiffres deffilent...\nRésultat dans 7.5 secondes...`) .setColor(color) .setTimestamp() .setFooter({ text: `Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() }) @@ -85,7 +85,7 @@ module.exports = { return message.reply({ embeds: [embed], allowedMentions: { repliedUser: false } }) }); - await new Promise(resolve => setTimeout(resolve, 5000)); + await new Promise(resolve => setTimeout(resolve, 7500)); let nombre1 = await Math.floor(Math.random() * 9) let nombre2 = await Math.floor(Math.random() * 9) diff --git a/commands/jeux/pierre-feuille-ciseau.js b/commands/jeux/pierre-feuille-ciseau.js index 971918c..f14b18b 100644 --- a/commands/jeux/pierre-feuille-ciseau.js +++ b/commands/jeux/pierre-feuille-ciseau.js @@ -74,13 +74,13 @@ module.exports = { const sendMessage = await message.reply({ embeds: [ new EmbedBuilder() .setTitle('🪨 Pierre Feuille Ciseau') - .setDescription(`Vous avez misé(e) \`${args[0]}\` coins sur \`${args[1]}\`...\nRésultat dans 5 secondes...`) + .setDescription(`Vous avez misé(e) \`${args[0]}\` coins sur \`${args[1]}\`...\nRésultat dans 7.5 secondes...`) .setColor(await embedColor(message.author.id, message.guild.id)) .setTimestamp() .setFooter({ text: `Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() }) ], allowedMentions: { repliedUser: false } }) - await new Promise(resolve => setTimeout(resolve, 5000)); + await new Promise(resolve => setTimeout(resolve, 7500)); const result = Math.floor(Math.random() * 2); let coupBot = '' diff --git a/commands/jeux/pile-face.js b/commands/jeux/pile-face.js index 037f73a..32cc4c3 100644 --- a/commands/jeux/pile-face.js +++ b/commands/jeux/pile-face.js @@ -93,7 +93,7 @@ module.exports = { const embed = new EmbedBuilder() .setTitle('🪙 Pile ou face') .setImage('https://images-ext-1.discordapp.net/external/Zz7GmmFoFdFRB7GCjiJGaDHDjJi8noOLY8zasCmUOGQ/https/media.giphy.com/media/26uflBhaGt5lQsaCA/giphy.gif') - .setDescription(`Vous avez misé \`${mise}\` sur \`${args[1]}\`. la pièce tourne...\nRésultat dans 5 secondes...`) + .setDescription(`Vous avez misé \`${mise}\` sur \`${args[1]}\`. la pièce tourne...\nRésultat dans 7.5 secondes...`) .setColor(color) .setTimestamp() .setFooter({ text: `Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() }) @@ -101,7 +101,7 @@ module.exports = { return message.reply({ embeds: [embed], allowedMentions: { repliedUser: false } }) }); - await new Promise(resolve => setTimeout(resolve, 5000)); + await new Promise(resolve => setTimeout(resolve, 7500)); const result = Math.floor(Math.random() * 2); let colorR = ''; @@ -113,7 +113,7 @@ module.exports = { let gain = 0; if (((args[1] === 'pile' || args[1] === 'p') && colorR === 'pile') || ((args[1] === 'face' || args[1] === 'f') && colorR === 'face')) { - gain = mise * 1.5; + gain = Math.round(mise * 1.5); } else { gain = 0 - mise; } diff --git a/commands/jeux/roll.js b/commands/jeux/roll.js index 601329d..a9abd05 100644 --- a/commands/jeux/roll.js +++ b/commands/jeux/roll.js @@ -94,7 +94,7 @@ module.exports = { const embed = new EmbedBuilder() .setTitle('🎲 Roulette') .setImage('https://images-ext-1.discordapp.net/external/Zz7GmmFoFdFRB7GCjiJGaDHDjJi8noOLY8zasCmUOGQ/https/media.giphy.com/media/26uflBhaGt5lQsaCA/giphy.gif') - .setDescription(`Vous avez misé \`${mise}\` sur \`${args[1]}\`. La bille tourne...\nRésultat dans 5 secondes...`) + .setDescription(`Vous avez misé \`${mise}\` sur \`${args[1]}\`. La bille tourne...\nRésultat dans 7.5 secondes...`) .setColor(color) .setTimestamp() .setFooter({ text: `Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() }) @@ -102,7 +102,7 @@ module.exports = { return message.reply({ embeds: [embed], allowedMentions: { repliedUser: false } }) }); - await new Promise(resolve => setTimeout(resolve, 5000)); + await new Promise(resolve => setTimeout(resolve, 7500)); const result = Math.floor(Math.random() * 37); let colorR = ''; @@ -116,7 +116,7 @@ module.exports = { let gain = 0; if (((args[1] === 'rouge' || args[1] === 'red') && colorR === 'rouge') || ((args[1] === 'noir' || args[1] === 'black') && colorR === 'noir')) { - gain = mise * 2; + gain = Math.round(mise * 1.5); } else if ((args[1] === 'vert' || args[1] === 'green') && colorR === 'vert') { gain = mise * 36; } else {