From f5889bbfea51733fbe075ee580e1fc8b2d5ee686 Mon Sep 17 00:00:00 2001 From: yasirarism <55983182+yasirarism@users.noreply.github.com> Date: Mon, 22 May 2023 15:24:25 +0000 Subject: [PATCH] fix botname --- misskaty/helper/kuso_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misskaty/helper/kuso_utils.py b/misskaty/helper/kuso_utils.py index 59d0c3d0..d86f5d8b 100644 --- a/misskaty/helper/kuso_utils.py +++ b/misskaty/helper/kuso_utils.py @@ -95,7 +95,7 @@ async def byPassPh(url: str, name: str): html = chevron.render(template, kusonime) telegraph = Telegraph() if not telegraph.get_access_token(): - await telegraph.create_account(short_name=bot_name) + await telegraph.create_account(short_name=BOT_USERNAME) page = await telegraph.create_page(f"{kusonime.get('title')} By {escape(name)}", html_content=html) results.update({"error": False, "url": "https://telegra.ph/{}".format(page["path"])}) del results["error_message"]