aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--commands/Fun/getcredits.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/commands/Fun/getcredits.js b/commands/Fun/getcredits.js
index 21c6dd1..c3cab5f 100644
--- a/commands/Fun/getcredits.js
+++ b/commands/Fun/getcredits.js
@@ -19,8 +19,18 @@
* *************************************/
exports.run = (bot, msg) => {
- bot.plugins.economy.add(msg.author.id, 10);
- msg.reply('Added 10 credits.');
+ const commandCooldown = new Set();
+
+ if (commandCooldown.has(msg.author.id)) return msg.reply('You have claimed credits too recently')
+
+
+ bot.plugins.economy.add(msg.author.id, 25);
+ msg.reply('Added 25 credits.');
+
+ talkedRecently.add(msg.author.id);
+ setTimeout(() => {
+ talkedRecently.delete(msg.author.id);
+ }, 3600000);
};
exports.conf = {