aboutsummaryrefslogtreecommitdiff
path: root/commands/Fun/jobs.js
diff options
context:
space:
mode:
authorJustin <jtsshieh@outlook.com>2019-11-02 11:02:19 -0400
committerJustin <jtsshieh@outlook.com>2019-11-02 11:02:19 -0400
commit7031fa12ba79281edc49df972311c13ad0e8fa53 (patch)
tree60410a33fe45add85a9dc962c975be478f3f8cff /commands/Fun/jobs.js
parent106530d5dc53166632a6a0ecc8930eb2b1ed4bfd (diff)
downloadPokeBot-7031fa12ba79281edc49df972311c13ad0e8fa53.tar.gz
PokeBot-7031fa12ba79281edc49df972311c13ad0e8fa53.tar.bz2
PokeBot-7031fa12ba79281edc49df972311c13ad0e8fa53.zip
es-lint settings added + linted all files
Diffstat (limited to 'commands/Fun/jobs.js')
-rw-r--r--commands/Fun/jobs.js43
1 files changed, 22 insertions, 21 deletions
diff --git a/commands/Fun/jobs.js b/commands/Fun/jobs.js
index f71ba28..d71ac31 100644
--- a/commands/Fun/jobs.js
+++ b/commands/Fun/jobs.js
@@ -9,31 +9,32 @@
const cooldown = new Set();
exports.run = (bot, msg) => {
- if (cooldown.has(msg.author.id)) return msg.reply('You have worked too recently');
+ if (cooldown.has(msg.author.id)) {
+ return msg.reply('You have worked too recently');
+ }
const jobs = [
- "started a BitCoin farm",
- "pissed for an elderly woman",
- "became a doctor and illegally sold organs",
- "extracted eggs from elderly women",
- "became a bus driver",
- "started working for Universe Dev Group",
- "programmed a Discord bot",
- "made a crowdfunding campaign",
- "became a news anchor",
- "flooded Amsterdam",
- "became YouTube famous.",
- ]
+ 'started a BitCoin farm',
+ 'pissed for an elderly woman',
+ 'became a doctor and illegally sold organs',
+ 'extracted eggs from elderly women',
+ 'became a bus driver',
+ 'started working for Universe Dev Group',
+ 'programmed a Discord bot',
+ 'made a crowdfunding campaign',
+ 'became a news anchor',
+ 'flooded Amsterdam',
+ 'became YouTube famous.'
+ ];
if (bot.dbl.hasVoted(msg.author.id)) {
- var creditsEarned = Math.floor(Math.random() * 650);
+ const 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.floor(Math.random() * 250);
+ msg.channel.send(`You worked and ${ jobs[Math.floor(Math.random() * jobs.length)] }\n\nYou earned ${ creditsEarned.toString() } credits.`);
+ } else {
+ const 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.');
+ 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(() => {
@@ -43,10 +44,10 @@ exports.run = (bot, msg) => {
exports.conf = {
aliases: [],
- guildOnly: true,
+ guildOnly: true
};
exports.help = {
name: 'jobs',
- description: 'Work to add credits to your account.',
+ description: 'Work to add credits to your account.'
};