3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +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 6d6bc735e9
commit d1764d5f87
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

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();