simplify dale
This commit is contained in:
parent
6cfeeb9c2f
commit
e23100ca70
@ -88,15 +88,7 @@ class AnimalFunctions(commands.Cog):
|
||||
)
|
||||
async def dale(self, ctx: commands.Context):
|
||||
|
||||
# If the file picked is too large, try again
|
||||
dale_pic = None
|
||||
while not dale_pic:
|
||||
try:
|
||||
dale_pic = animals.dale()
|
||||
await ctx.respond(file=discord.File(dale_pic))
|
||||
except Exception:
|
||||
print("File too large, trying again")
|
||||
dale_pic = None
|
||||
await ctx.respond(file=discord.File(animals.dale()))
|
||||
|
||||
@commands.slash_command(
|
||||
guild_ids=None, name="rat", description="Posts a photo of a rat"
|
||||
|
Loading…
x
Reference in New Issue
Block a user