From eb73e7a50b2f0ebccaa3200adbe02878be05f64f Mon Sep 17 00:00:00 2001 From: yasir Date: Tue, 14 Feb 2023 13:26:08 +0700 Subject: [PATCH] Hmm --- misskaty/plugins/dev.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/misskaty/plugins/dev.py b/misskaty/plugins/dev.py index f0d69d06..4ced27f2 100644 --- a/misskaty/plugins/dev.py +++ b/misskaty/plugins/dev.py @@ -37,33 +37,11 @@ async def edit_or_reply(msg, **kwargs): async def log_file(bot, message): """Send log file""" try: - try: - text_file = open("MissKatyLogs.txt", "r") - data = text_file.read() - json_data = { - "content": data, - "highlighting_language": "auto", - "ephemeral": False, - "expire_at": 0, - "expire_in": 0, - } - response = await http.post("https://paste.yasir.eu.org/api/new", json=json_data) - link = f"https://paste.yasir.eu.org/{response.json()['id']}" - LOGGER.info(link) - text_file.close() - except: - link = None await message.reply_document( "MissKatyLogs.txt", caption="Log Bot MissKatyPyro", reply_markup=InlineKeyboardMarkup( [ - [ - InlineKeyboardButton( - "🌀 Open in Web", - link, - ) - ], [ InlineKeyboardButton( "❌ Close",