I am unsmart

This commit is contained in:
Darien Rousseau 2023-12-23 19:44:59 -06:00 committed by GitHub
parent 86f15c75fe
commit 00ce4d8934
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -653,14 +653,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"}** ${poor ? Math.abs(points) : Math.abs(bet)} coins!`, // sanity check description: `You flipped ${config.games.coinflip.heads} and **${outcome ? "won" : "lost"}** ${Math.abs(bet)} coins!`, // sanity check
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"}** ${poor ? Math.abs(points) : Math.abs(bet)} coins!`, description: `You flipped ${config.games.coinflip.tails} and **${outcome ? "won" : "lost"}** ${Math.abs(bet)} coins!`,
color: outcome ? 0x00ff00 : 0xff0000 color: outcome ? 0x00ff00 : 0xff0000
}] }]
}); });