aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Vivaan Parashar <[email protected]>2021-02-11 14:12:50 +0530
committerGravatar Vivaan Parashar <[email protected]>2021-02-11 14:12:50 +0530
commitb6b271dd5913a0dd978af5d04b20cdc54b88afcd (patch)
tree24e600c3670b7312ebfb4bc9272960f26df9602c
parentuse discord's orange colour (diff)
Apply cooldown to all users instead of global cooldown.
-rw-r--r--bot/exts/evergreen/stackoverflow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/evergreen/stackoverflow.py b/bot/exts/evergreen/stackoverflow.py
index f5bcba20..2a4b5f88 100644
--- a/bot/exts/evergreen/stackoverflow.py
+++ b/bot/exts/evergreen/stackoverflow.py
@@ -15,7 +15,7 @@ class Stackoverflow(commands.Cog):
self.bot = bot
@commands.command(name="stackoverflow", aliases=["so"])
- @commands.cooldown(1, 15)
+ @commands.cooldown(1, 15, commands.cooldowns.BucketType.user)
async def stackoverflow(self, ctx: commands.Context, *, search_query: str) -> None:
"""Sends the top 5 results from stackoverflow based on a search query."""
async with self.bot.http_session.get(BASE_URL.format(query=quote_plus(search_query))) as response: