From 45b9fb1c428fb80c1aca3979d0415d5cbc45ed32 Mon Sep 17 00:00:00 2001 From: yasirarism <55983182+yasirarism@users.noreply.github.com> Date: Fri, 16 Dec 2022 09:46:07 +0700 Subject: [PATCH] Fix if link not start with http --- misskaty/plugins/webss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misskaty/plugins/webss.py b/misskaty/plugins/webss.py index 3ec35890..74f5fd38 100644 --- a/misskaty/plugins/webss.py +++ b/misskaty/plugins/webss.py @@ -20,7 +20,7 @@ __HELP__ = """ async def take_ss(_, message): if len(message.command) == 1: return await message.reply("Give A Url To Fetch Screenshot.") - url = message.command[1] + url = message.command[1] if message.command[1].startswith("http") else f"https://{message.command[1]}" filename = f"imageToSave_{message.from_user.id}.png" m = await message.reply("Capturing screenshot...") try: