revert coinflip cooldown and text

This commit is contained in:
Darien Rousseau 2023-08-14 19:48:02 -06:00 committed by GitHub
parent ff69f2b1fd
commit 6b359c8c7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -579,7 +579,7 @@ client.on("interactionCreate", async interaction => {
}); });
} }
} }
coinflipCooldowns[interaction.user.id] = Date.now() + (config.games.coinflip.cooldown * 6 * 1000); coinflipCooldowns[interaction.user.id] = Date.now() + (config.games.coinflip.cooldown * 60 * 1000);
bet = parseInt(interaction.options.get("amount").value); bet = parseInt(interaction.options.get("amount").value);
if (bet < 1 || bet > 10) return interaction.reply({ if (bet < 1 || bet > 10) return interaction.reply({
@ -606,14 +606,14 @@ client.on("interactionCreate", async interaction => {
if (coin == "heads") return interaction.reply({ if (coin == "heads") return interaction.reply({
embeds: [{ embeds: [{
title: "Coinflip", title: "Coinflip",
description: `You flipped ${config.games.coinflip.heads} and **${outcome ? "won" : "lost"}** ${Math.abs(bet)} coins! You Chose: ${side}.`, description: `You flipped ${config.games.coinflip.heads} and **${outcome ? "won" : "lost"}** ${Math.abs(bet)} coins!`,
color: outcome ? 0x00ff00 : 0xff0000 color: outcome ? 0x00ff00 : 0xff0000
}] }]
}); });
else if (coin == "tails") return interaction.reply({ else if (coin == "tails") return interaction.reply({
embeds: [{ embeds: [{
title: "Coinflip", title: "Coinflip",
description: `You flipped ${config.games.coinflip.tails} and **${outcome ? "won" : "lost"}** ${Math.abs(bet)} coins! You Chose: ${side}.`, description: `You flipped ${config.games.coinflip.tails} and **${outcome ? "won" : "lost"}** ${Math.abs(bet)} coins!`,
color: outcome ? 0x00ff00 : 0xff0000 color: outcome ? 0x00ff00 : 0xff0000
}] }]
}); });