diff options
| author | Trey <trey6979@gmail.com> | 2018-04-16 19:47:58 -0400 |
|---|---|---|
| committer | Trey <trey6979@gmail.com> | 2018-04-16 19:47:58 -0400 |
| commit | 871e8c68be58d5d925a4029db703e2156aa33ad4 (patch) | |
| tree | 65020e958f3e2656ab60a64f5c0f71b6aeafe024 /commands/Fun/jobs.js | |
| parent | de4559ac52e23aa24197f9812fcbbb3a44378c02 (diff) | |
| download | PokeBot-871e8c68be58d5d925a4029db703e2156aa33ad4.tar.gz PokeBot-871e8c68be58d5d925a4029db703e2156aa33ad4.tar.bz2 PokeBot-871e8c68be58d5d925a4029db703e2156aa33ad4.zip | |
justin is on top in the bedroom
Diffstat (limited to 'commands/Fun/jobs.js')
| -rw-r--r-- | commands/Fun/jobs.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/Fun/jobs.js b/commands/Fun/jobs.js index cf74969..f71ba28 100644 --- a/commands/Fun/jobs.js +++ b/commands/Fun/jobs.js @@ -26,12 +26,12 @@ exports.run = (bot, msg) => { ] if (bot.dbl.hasVoted(msg.author.id)) { - var creditsEarned = (Math.random() * Math.floor(650)); + var creditsEarned = Math.floor(Math.random() * 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 { - var creditsEarned = (Math.random() * Math.floor(250)); + var creditsEarned = Math.floor(Math.random() * 250); 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.'); } |
