diff --git a/misskaty/plugins/dev.py b/misskaty/plugins/dev.py index 59d3dc31e7..97465b18f9 100644 --- a/misskaty/plugins/dev.py +++ b/misskaty/plugins/dev.py @@ -6,6 +6,7 @@ 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"Here the Logs\nlog size: {get_readable_file_size(os.path.getsize('MissKatyLogs.txt'))}" + f"Here the Logs\nlog size: {get_readable_file_size(os.path.getsize('MissKatyLogs.txt'))}" ) except Exception: await ctx.reply_document(