aboutsummaryrefslogtreecommitdiff
path: root/commands/Fun
diff options
context:
space:
mode:
authorTheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com>2018-03-11 22:17:31 -0400
committerTheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com>2018-03-11 22:17:31 -0400
commitaa8526d35c25d65c300b535a0bc4ef572335ee4f (patch)
tree6a07a2191c470b8d18ab99ae76f2105cf8a21016 /commands/Fun
parent9056d09d3c397fc3a64f27cfae3ce06c6a758c16 (diff)
downloadPokeBot-aa8526d35c25d65c300b535a0bc4ef572335ee4f.tar.gz
PokeBot-aa8526d35c25d65c300b535a0bc4ef572335ee4f.tar.bz2
PokeBot-aa8526d35c25d65c300b535a0bc4ef572335ee4f.zip
added some Gamers
Diffstat (limited to 'commands/Fun')
-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 = {