diff options
| author | Trey <trey6979@gmail.com> | 2018-04-16 19:41:53 -0400 |
|---|---|---|
| committer | Trey <trey6979@gmail.com> | 2018-04-16 19:41:53 -0400 |
| commit | 0849e799879fd39285d1f8899d38434d20e3d396 (patch) | |
| tree | 33dc7990c48391388553a3f7bf683cc1b465792a /commands | |
| parent | 3543715ea879709f082137f998dafc9f9d88b2c8 (diff) | |
| download | PokeBot-0849e799879fd39285d1f8899d38434d20e3d396.tar.gz PokeBot-0849e799879fd39285d1f8899d38434d20e3d396.tar.bz2 PokeBot-0849e799879fd39285d1f8899d38434d20e3d396.zip | |
fickle
Diffstat (limited to 'commands')
| -rw-r--r-- | commands/Fun/jobs.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/commands/Fun/jobs.js b/commands/Fun/jobs.js index 8574868..ce57cce 100644 --- a/commands/Fun/jobs.js +++ b/commands/Fun/jobs.js @@ -26,13 +26,14 @@ exports.run = (bot, msg) => { ] if (bot.dbl.hasVoted(msg.author.id)) { - + var creditsEarned = (Math.random() * Math.floor(650)); + bot.plugins.economy.add(msg.author.id, creditsEarned); + msg.channel.send('You worked and ' + jobs[Math.floor(Math.random() * jobs.length())] + '\n\nYou earned ' + creditsEarned.toString() + 'credits.'); } else { - bot.plugins.economy.add(msg.author.id, (Math.random() * Math.floor(250))); var creditsEarned = (Math.random() * Math.floor(250)); bot.plugins.economy.add(msg.author.id, creditsEarned); - msg.reply('You worked and ' + jobs[Math.floor(Math.random() * jobs.length())] + '\n\nYou earned ' + creditsEarned.toString() + 'credits.'); + msg.channel.send('You worked and ' + jobs[Math.floor(Math.random() * jobs.length())] + '\n\nYou earned ' + creditsEarned.toString() + 'credits.'); } cooldown.add(msg.author.id); setTimeout(() => { |
