From d1764d5f87bcad70944466328d36fbdf8d375a18 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sat, 18 Jan 2020 11:15:35 +0200 Subject: [PATCH] Add cooldown to !jumbo Since the command uses extra server resources for resizing the image, I want to limit its use a bit. Might look into a per-channel or per-guild cooldown in the future rather than per-user, but this will work for now. --- backend/src/plugins/Utility.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/plugins/Utility.ts b/backend/src/plugins/Utility.ts index 68ebf064..e56dc526 100644 --- a/backend/src/plugins/Utility.ts +++ b/backend/src/plugins/Utility.ts @@ -1489,6 +1489,7 @@ export class UtilityPlugin extends ZeppelinPlugin { }, }) @d.permission("can_jumbo") + @d.cooldown(5 * SECONDS) async jumboCmd(msg: Message, args: { emoji: string }) { // Get emoji url const config = this.getConfig();