randydev commited on
Commit
9635ed4
·
verified ·
1 Parent(s): cb80429

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -3
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
- urls = 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,10 +766,10 @@ async def evaluation_cmd(client, message):
766
  [
767
  [
768
  InlineKeyboardButton(
769
- "Pastebin", url=f"{urls}"
770
  ),
771
  InlineKeyboardButton(
772
- "Delete Pastebin", callback_data=f"deletepaste_{urls.split()[3]}"
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
  ]