Removing restriction on Doggo command

pull/8/head
sgoudham 4 years ago
parent 74ce5cd2fb
commit 79f579eeda

@ -1,4 +1,3 @@
import asyncio
import datetime
import random
import string
@ -8,8 +7,6 @@ from discord import Colour, Embed
from discord.ext import commands
from discord.ext.commands import BucketType, cooldown, command
import settings
from cogs.anime.interactive import error_function
from settings import colour_list
@ -23,9 +20,6 @@ class Doggo(commands.Cog):
async def doggo(self, ctx, breed=None):
"""Allows an API to grab images of dogs"""
# If the channel that the command has been sent is in the list of accepted channels
if str(ctx.channel) in settings.channels:
# Set member as the author
member = ctx.message.author
# Get the member avatar
@ -115,15 +109,6 @@ class Doggo(commands.Cog):
# Send error message that Doggo was not found!
await ctx.send(
"Doggo Not Found! Please do **~doggo `breeds`** to see the full list of Doggos!")
else:
# Call error_function() and display it to the user
message = await ctx.send(error_function())
# Let the user read the message for 2.5 seconds
await asyncio.sleep(2.5)
# Delete the message
await message.delete()
def setup(bot):

Loading…
Cancel
Save