From eebaeef2f5947017ce1f652dfc6fdbc9e187055b Mon Sep 17 00:00:00 2001 From: blank X Date: Tue, 1 Dec 2020 19:28:48 +0700 Subject: [PATCH] Show exit code if the response is a file --- sukuinote/plugins/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sukuinote/plugins/shell.py b/sukuinote/plugins/shell.py index de215fb..69baf69 100644 --- a/sukuinote/plugins/shell.py +++ b/sukuinote/plugins/shell.py @@ -29,7 +29,7 @@ async def shell(client, message): f = BytesIO(out.strip().encode('utf-8')) f.name = "output.txt" await reply.delete() - await message.reply_document(f) + await message.reply_document(f, caption=f'Exit Code: {returncode}') else: await reply.edit_text(text)