mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-18 15:45:03 +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:
parent
daf2f9dfaa
commit
72af3758d7
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue