From 27cecbdc7e2e5c9c8ed71d77b3f4a5e32fd80e68 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Wed, 17 Jun 2020 03:01:30 +0100 Subject: [PATCH] Added cooldown to the ~enso command --- cogs/WaifuImages.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cogs/WaifuImages.py b/cogs/WaifuImages.py index d085b5e3..bc69d73a 100644 --- a/cogs/WaifuImages.py +++ b/cogs/WaifuImages.py @@ -4,6 +4,7 @@ import random import discord from discord.ext import commands +from discord.ext.commands import cooldown, BucketType import config @@ -115,6 +116,7 @@ class Waifus(commands.Cog): # Bot ~ensoPerson command for the server members @commands.command(aliases=['enso', 'Ensoperson']) + @cooldown(1, 1.5, BucketType.channel) async def ensoperson(self, ctx, name=None): if name: try: