3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-18 07:35:02 +00:00

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.
This commit is contained in:
Dragory 2020-01-18 11:15:35 +02:00
parent daf2f9dfaa
commit 72af3758d7

View file

@ -1489,6 +1489,7 @@ export class UtilityPlugin extends ZeppelinPlugin<TConfigSchema> {
},
})
@d.permission("can_jumbo")
@d.cooldown(5 * SECONDS)
async jumboCmd(msg: Message, args: { emoji: string }) {
// Get emoji url
const config = this.getConfig();