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 datetime
import random import random
import string import string
@ -8,8 +7,6 @@ from discord import Colour, Embed
from discord.ext import commands from discord.ext import commands
from discord.ext.commands import BucketType, cooldown, command from discord.ext.commands import BucketType, cooldown, command
import settings
from cogs.anime.interactive import error_function
from settings import colour_list from settings import colour_list
@ -23,9 +20,6 @@ class Doggo(commands.Cog):
async def doggo(self, ctx, breed=None): async def doggo(self, ctx, breed=None):
"""Allows an API to grab images of dogs""" """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 # Set member as the author
member = ctx.message.author member = ctx.message.author
# Get the member avatar # Get the member avatar
@ -115,15 +109,6 @@ class Doggo(commands.Cog):
# Send error message that Doggo was not found! # Send error message that Doggo was not found!
await ctx.send( await ctx.send(
"Doggo Not Found! Please do **~doggo `breeds`** to see the full list of Doggos!") "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): def setup(bot):

Loading…
Cancel
Save