mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
another fix
This commit is contained in:
parent
04294c7f4f
commit
2e20b79959
1 changed files with 3 additions and 7 deletions
|
|
@ -6,6 +6,7 @@ import json
|
|||
import os
|
||||
import pickle
|
||||
import platform
|
||||
import privatebinapi
|
||||
import re
|
||||
import sys
|
||||
import traceback
|
||||
|
|
@ -145,14 +146,9 @@ async def log_file(_, ctx: Message, strings):
|
|||
try:
|
||||
with open("MissKatyLogs.txt", "r") as file:
|
||||
content = file.read()
|
||||
data = {
|
||||
"value": content,
|
||||
}
|
||||
pastelog = await fetch.post(
|
||||
"https://paste.yasirapi.eu.org/save", data=data, follow_redirects=True
|
||||
)
|
||||
pastelog = await privatebinapi.send_async("https://bin.yasirweb.eu.org", text=content, expiration="1week", formatting="sourcecode")
|
||||
await msg.edit_msg(
|
||||
f"<a href='{pastelog.url}'>Here the Logs</a>\nlog size: {get_readable_file_size(os.path.getsize('MissKatyLogs.txt'))}"
|
||||
f"<a href='{pastelog['full_url']}'>Here the Logs</a>\nlog size: {get_readable_file_size(os.path.getsize('MissKatyLogs.txt'))}"
|
||||
)
|
||||
except Exception:
|
||||
await ctx.reply_document(
|
||||
|
|
|
|||
Loading…
Reference in a new issue