mirror of
https://github.com/arthur-pbty/bot-discord-coins.git
synced 2026-06-20 05:41:47 +02:00
Update passage de 5s à 7.5s + suppr des virgules
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 = ''
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user