Skip to content
Snippets Groups Projects
Commit 61ce36a3 authored by Reviath's avatar Reviath
Browse files

fixed slots command

parent bbb7bda6
Branches
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ let slots = ["<a:blue_fire:801857759989465170>", "<a:orange_fire:801858052163895
else{
cfNumber = number;
};
msg = await message.channel.send('Sloting...');
msg = await message.channel.send(`You bet ${cfNumber}, sloting...`);
if (slots[result1] === slots[result2] && slots[result1] === slots[result3]) {
setTimeout( async function() {
let embed = new Discord.MessageEmbed()
......@@ -33,7 +33,9 @@ let slots = ["<a:blue_fire:801857759989465170>", "<a:orange_fire:801858052163895
.addField(`You won `,`${cfNumber*2}`)
.setColor(0xF4E842)
msg.edit(embed).then(db.add(`Balance_${message.author.id}`, cfNumber));
}, 5000)
} else {
setTimeout( async function() {
let embed2 = new Discord.MessageEmbed()
.setFooter('You lost!', icon)
.setTitle(':slot_machine: Slots :slot_machine:')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment