Added cooldown to the ~enso command

pull/2/head
sgoudham 5 years ago
parent dbe3a8d8cf
commit 27cecbdc7e

@ -4,6 +4,7 @@ import random
import discord import discord
from discord.ext import commands from discord.ext import commands
from discord.ext.commands import cooldown, BucketType
import config import config
@ -115,6 +116,7 @@ class Waifus(commands.Cog):
# Bot ~ensoPerson command for the server members # Bot ~ensoPerson command for the server members
@commands.command(aliases=['enso', 'Ensoperson']) @commands.command(aliases=['enso', 'Ensoperson'])
@cooldown(1, 1.5, BucketType.channel)
async def ensoperson(self, ctx, name=None): async def ensoperson(self, ctx, name=None):
if name: if name:
try: try:

Loading…
Cancel
Save