Removed error handling for OwOText.py

pull/2/head
sgoudham 4 years ago
parent e4939a2fca
commit 83dfa8db15

@ -1,4 +1,3 @@
import asyncio
import random
from discord.ext import commands
@ -55,17 +54,6 @@ class OwOText(commands.Cog):
await ctx.message.channel.send(owo)
# Bot Event for handling cooldown error
@commands.Cog.listener()
async def on_command_error(self, ctx, error):
if isinstance(error, commands.CommandOnCooldown):
message = await ctx.send(f'That command is on cooldown. Try again in {error.retry_after:,.2f} seconds.')
# Let the user read the message for 2.5 seconds
await asyncio.sleep(2.5)
# Delete the message
await message.delete()
def setup(bot):
bot.add_cog(OwOText(bot))

Loading…
Cancel
Save