Update pic.go

This commit is contained in:
Atridad Lahiji 2024-02-23 23:07:37 -07:00 committed by GitHub
parent 0c236f1da3
commit 764fd9ba8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,7 +15,7 @@ import (
func Pic(ctx context.Context, data cmdroute.CommandData) *api.InteractionResponseData { func Pic(ctx context.Context, data cmdroute.CommandData) *api.InteractionResponseData {
// Cooldown Logic // Cooldown Logic
allowed, cooldownString := lib.CooldownHandler(*data.Event, "pic", time.Minute*2) allowed, cooldownString := lib.CooldownHandler(*data.Event, "pic", time.Minute*5)
if !allowed { if !allowed {
return lib.ErrorResponse(errors.New(cooldownString)) return lib.ErrorResponse(errors.New(cooldownString))