From aa8526d35c25d65c300b535a0bc4ef572335ee4f Mon Sep 17 00:00:00 2001 From: TheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com> Date: Sun, 11 Mar 2018 22:17:31 -0400 Subject: added some Gamers --- commands/Fun/getcredits.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'commands/Fun') 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 = { -- cgit v1.2.3