mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17: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 os
|
||||||
import pickle
|
import pickle
|
||||||
import platform
|
import platform
|
||||||
|
import privatebinapi
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
|
|
@ -145,14 +146,9 @@ async def log_file(_, ctx: Message, strings):
|
||||||
try:
|
try:
|
||||||
with open("MissKatyLogs.txt", "r") as file:
|
with open("MissKatyLogs.txt", "r") as file:
|
||||||
content = file.read()
|
content = file.read()
|
||||||
data = {
|
pastelog = await privatebinapi.send_async("https://bin.yasirweb.eu.org", text=content, expiration="1week", formatting="sourcecode")
|
||||||
"value": content,
|
|
||||||
}
|
|
||||||
pastelog = await fetch.post(
|
|
||||||
"https://paste.yasirapi.eu.org/save", data=data, follow_redirects=True
|
|
||||||
)
|
|
||||||
await msg.edit_msg(
|
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:
|
except Exception:
|
||||||
await ctx.reply_document(
|
await ctx.reply_document(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue