diff options
| author | TheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com> | 2018-03-11 22:20:56 -0400 |
|---|---|---|
| committer | TheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com> | 2018-03-11 22:20:56 -0400 |
| commit | 5049c307323d6b717625ec29f514757b907c5a57 (patch) | |
| tree | d08a3b28f15b2f26dc41caa4991c0d244a3990d6 | |
| parent | 965985f82deddb0d7b09996f4e6c515e0e137085 (diff) | |
| download | PokeBot-5049c307323d6b717625ec29f514757b907c5a57.tar.gz PokeBot-5049c307323d6b717625ec29f514757b907c5a57.tar.bz2 PokeBot-5049c307323d6b717625ec29f514757b907c5a57.zip | |
i just learned this exists so I am trying to make it work
| -rw-r--r-- | commands/Fun/getcredits.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/commands/Fun/getcredits.js b/commands/Fun/getcredits.js index 44f3c7d..26aaf61 100644 --- a/commands/Fun/getcredits.js +++ b/commands/Fun/getcredits.js @@ -17,10 +17,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. * * *************************************/ +const commandCooldown = new Set(); exports.run = (bot, msg) => { - const commandCooldown = new Set(); - if (commandCooldown.has(msg.author.id)) return msg.reply('You have claimed credits too recently') |
