This commit is contained in:
nex 2023-01-09 14:44:30 +00:00
parent 33b9df3bb0
commit 630c9391ee

View file

@ -402,7 +402,13 @@ class OtherCog(commands.Cog):
done_tasks = done done_tasks = done
done = done_tasks or pending done = done_tasks or pending
done = pending or done_tasks done = pending or done_tasks
try:
done = done.pop() done = done.pop()
except KeyError:
return await ctx.respond(
"Something went wrong. Try again?\n"
f"`DONE:{done}|DONETASKS:{done_tasks}|PENDING:{pending}`"
)
result = await done result = await done
if result is not True: if result is not True:
return await ctx.edit( return await ctx.edit(