From d214791a1f373fc0156791ba477e6bb5859b32f0 Mon Sep 17 00:00:00 2001 From: Emily J Date: Sat, 10 Oct 2020 13:29:49 +1100 Subject: [PATCH] add cooldown --- bot/base/Command.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot/base/Command.js b/bot/base/Command.js index b06b447..ad4cb52 100644 --- a/bot/base/Command.js +++ b/bot/base/Command.js @@ -9,10 +9,11 @@ class Command { guildOnly = false, devOnly = false, aliases = new Array(), - permLevel = "User" + permLevel = "User", + cooldown = 2000 }) { this.client = client; - this.conf = { enabled, guildOnly, devOnly, aliases, permLevel }; + this.conf = { enabled, guildOnly, devOnly, aliases, permLevel, cooldown }; this.help = { name, description, category, usage }; } }