Skip to content

Commit

Permalink
feat: Add command cooldown
Browse files Browse the repository at this point in the history
  • Loading branch information
B1ue-Dev committed Jul 7, 2023
1 parent 27a75cf commit f1d0444
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions exts/fun/trivia.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ async def get_question(self, category: str, difficulty: str) -> list:
),
],
)
@interactions.cooldown(interactions.Buckets.USER, 1, 10)
async def trivia(
self,
ctx: HybridContext,
Expand Down
1 change: 1 addition & 0 deletions exts/fun/urban.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def __init__(self, client: interactions.Client) -> None:
)
],
)
@interactions.cooldown(interactions.Buckets.USER, 1, 7)
async def urban(self, ctx: HybridContext, *, term: str) -> None:
"""Define a word on Urban Dictionary."""

Expand Down
1 change: 1 addition & 0 deletions exts/fun/whos_that_pokemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def __init__(self, client: interactions.Client) -> None:
),
],
)
@interactions.cooldown(interactions.Buckets.USER, 3, 10)
async def whos_that_pokemon(
self,
ctx: HybridContext,
Expand Down

0 comments on commit f1d0444

Please sign in to comment.