Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -756,7 +756,7 @@ async def evaluation_cmd(client, message):
|
|
756 |
|
757 |
final_output = f"**OUTPUT**:\n<pre language=''>{evaluation.strip()}</pre>"
|
758 |
if len(final_output) > 4096:
|
759 |
-
|
760 |
with open("eval.txt", "w+", encoding="utf8") as out_file:
|
761 |
out_file.write(final_output)
|
762 |
await status_message.reply_document(
|
@@ -766,10 +766,10 @@ async def evaluation_cmd(client, message):
|
|
766 |
[
|
767 |
[
|
768 |
InlineKeyboardButton(
|
769 |
-
"Pastebin", url=f"{
|
770 |
),
|
771 |
InlineKeyboardButton(
|
772 |
-
"Delete Pastebin", callback_data=f"deletepaste_{
|
773 |
),
|
774 |
]
|
775 |
]
|
|
|
756 |
|
757 |
final_output = f"**OUTPUT**:\n<pre language=''>{evaluation.strip()}</pre>"
|
758 |
if len(final_output) > 4096:
|
759 |
+
urls_paste = await paste_text(evaluation.strip())
|
760 |
with open("eval.txt", "w+", encoding="utf8") as out_file:
|
761 |
out_file.write(final_output)
|
762 |
await status_message.reply_document(
|
|
|
766 |
[
|
767 |
[
|
768 |
InlineKeyboardButton(
|
769 |
+
"Pastebin", url=f"{urls_paste}"
|
770 |
),
|
771 |
InlineKeyboardButton(
|
772 |
+
"Delete Pastebin", callback_data=f"deletepaste_{urls_paste.split('/')[3]}"
|
773 |
),
|
774 |
]
|
775 |
]
|