From 6fff16e4dd4d3946d24701a732ac98b41dc1dc12 Mon Sep 17 00:00:00 2001 From: yasir Date: Tue, 14 Feb 2023 13:15:40 +0700 Subject: [PATCH] Add pickle when restart --- misskaty/plugins/dev.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/misskaty/plugins/dev.py b/misskaty/plugins/dev.py index 7bb5e397..30eee670 100644 --- a/misskaty/plugins/dev.py +++ b/misskaty/plugins/dev.py @@ -46,9 +46,8 @@ async def log_file(bot, message): } response = await http.post("https://paste.yasir.eu.org/api/new", json=json_data) link = f"https://paste.yasir.eu.org/{response.json()['id']}" - markup = InlineKeyboardMarkup([[InlineKeyboardButton(text="💬 View in Web", url=link)]]) except: - markup = None + link = None await message.reply_document( "MissKatyLogs.txt", caption="Log Bot MissKatyPyro", @@ -57,7 +56,7 @@ async def log_file(bot, message): [ InlineKeyboardButton( "🌀 Open in Web", - markup, + link, ) ], [