async def animal(ctx, name): await ctx.message.delete() animal = Animals(name) try: await ctx.send(animal.image()) except: await ctx.send("we dont have that animal :(")
async def animal(ctx, name): await ctx.message.delete() animal = Animals(name) await ctx.send(animal.image())
def img1(): an = Animals('dog') return (an.image())