add cooldown

This commit is contained in:
shibedrill 2024-04-26 15:01:42 -04:00
parent 05a57be964
commit c5e3288f6d

View File

@ -102,7 +102,7 @@ pub async fn bite(
}
/// POST A DEER
#[poise::command(slash_command)]
#[poise::command(slash_command, global_cooldown = 10)]
pub async fn deer(ctx: Context<'_>) -> Result<(), Error> {
let subreddit = Subreddit::new("deer");
let options = FeedOption::new().period(TimePeriod::ThisYear);