From b6b271dd5913a0dd978af5d04b20cdc54b88afcd Mon Sep 17 00:00:00 2001 From: Vivaan Parashar Date: Thu, 11 Feb 2021 14:12:50 +0530 Subject: Apply cooldown to all users instead of global cooldown. --- bot/exts/evergreen/stackoverflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot/exts/evergreen/stackoverflow.py') 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: -- cgit v1.2.3