aboutsummaryrefslogtreecommitdiff
path: root/commands/Fun
diff options
context:
space:
mode:
Diffstat (limited to 'commands/Fun')
-rw-r--r--commands/Fun/gamble.js (renamed from commands/Fun/slots.js)2
-rw-r--r--commands/Fun/getcredits.js36
-rw-r--r--commands/Fun/jobs.js51
3 files changed, 52 insertions, 37 deletions
diff --git a/commands/Fun/slots.js b/commands/Fun/gamble.js
index ddd6757..7921993 100644
--- a/commands/Fun/slots.js
+++ b/commands/Fun/gamble.js
@@ -66,6 +66,6 @@ exports.conf = {
};
exports.help = {
- name: 'slots',
+ name: 'gamble',
description: 'Develop a gambling addiction by playing Slots!',
};
diff --git a/commands/Fun/getcredits.js b/commands/Fun/getcredits.js
deleted file mode 100644
index 66ba282..0000000
--- a/commands/Fun/getcredits.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/** **************************************
- *
- * Get Credits: Plugin for PokeBot that gives you credits.
- * Copyright (C) 2018 TheEdge, jtsshieh, Alee
- *
- * Licensed under the Open Software License version 3.0
- *
- * *************************************/
-const cooldown = new Set();
-
-exports.run = (bot, msg) => {
- if (cooldown.has(msg.author.id)) return msg.reply('You have claimed credits too recently');
-
- if (bot.dbl.hasVoted(msg.author.id)) {
- bot.plugins.economy.add(msg.author.id, 100);
- msg.reply('Since you upvoted the bot, here is 100 credits.');
- }
- else {
- bot.plugins.economy.add(msg.author.id, 25);
- msg.reply('Added 25 credits.');
- }
- cooldown.add(msg.author.id);
- setTimeout(() => {
- cooldown.delete(msg.author.id);
- }, 3600000);
-};
-
-exports.conf = {
- aliases: [],
- guildOnly: true,
-};
-
-exports.help = {
- name: 'getcredits',
- description: 'Add credits to your account.',
-};
diff --git a/commands/Fun/jobs.js b/commands/Fun/jobs.js
new file mode 100644
index 0000000..8574868
--- /dev/null
+++ b/commands/Fun/jobs.js
@@ -0,0 +1,51 @@
+/** **************************************
+ *
+ * Get Credits: Plugin for PokeBot that gives you credits.
+ * Copyright (C) 2018 TheEdge, jtsshieh, Alee
+ *
+ * Licensed under the Open Software License version 3.0
+ *
+ * *************************************/
+const cooldown = new Set();
+
+exports.run = (bot, msg) => {
+ 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.",
+ ]
+
+ if (bot.dbl.hasVoted(msg.author.id)) {
+
+ }
+ 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.');
+ }
+ cooldown.add(msg.author.id);
+ setTimeout(() => {
+ cooldown.delete(msg.author.id);
+ }, 3600000);
+};
+
+exports.conf = {
+ aliases: [],
+ guildOnly: true,
+};
+
+exports.help = {
+ name: 'jobs',
+ description: 'Work to add credits to your account.',
+};