fix lotto glitch

This commit is contained in:
Unknown 2018-03-23 21:21:30 -04:00
parent 630f03e722
commit 0b92229494

View file

@ -44,7 +44,7 @@ exports.run = async (bot, msg) => {
const balance = await bot.plugins.economy.get(msg.author.id);
return await msg.channel.send('You won 1000 credits!\nCurrent Balance: ' + balance + ' \n> ' + emojify(number1, number2, number3));
}
else if (number2 == number3 - 1 && 1 == number2 - 1) {
else if (number2 == number3 - 1 && number1 == number2 - 1) {
await bot.plugins.economy.add(msg.author.id, 1500);
const balance = await bot.plugins.economy.get(msg.author.id);
return await msg.channel.send('You won 1500 credits!\nCurrent Balance: ' + balance + ' \n> ' + emojify(number1, number2, number3));