From 7133f62e9bf47288a4094d7c66c8dedf0718c645 Mon Sep 17 00:00:00 2001 From: ufoptg Date: Fri, 26 Jan 2024 06:50:08 +0000 Subject: [PATCH] pylint: auto fixes --- assistant/callbackstuffs.py | 4 +++- assistant/start.py | 16 ++++++++++------ plugins/nightmode.py | 4 +++- plugins/stickertools.py | 8 +++++--- 4 files changed, 21 insertions(+), 11 deletions(-) diff --git a/assistant/callbackstuffs.py b/assistant/callbackstuffs.py index db28bc451..6799a0d7a 100644 --- a/assistant/callbackstuffs.py +++ b/assistant/callbackstuffs.py @@ -570,7 +570,9 @@ async def emoji(event): var = "EMOJI_IN_HELP" name = f"Emoji in `{HNDLR}help` menu" async with event.client.conversation(pru) as conv: - await conv.send_message("Send emoji u want to set 🙃.\n\nUse /cancel to cancel.") + await conv.send_message( + "Send emoji u want to set 🙃.\n\nUse /cancel to cancel." + ) response = conv.wait_event(events.NewMessage(chats=pru)) response = await response themssg = response.message.message diff --git a/assistant/start.py b/assistant/start.py index c8dcb3c70..12226ed03 100644 --- a/assistant/start.py +++ b/assistant/start.py @@ -115,17 +115,21 @@ async def ultroid(event): await event.reply( f"Hey there {mention}, this is Ultroid Assistant of {me}!\n\n{ok}", file=udB.get_key("STARTMEDIA"), - buttons=[Button.inline("Info.", data="ownerinfo")] - if Owner_info_msg - else None, + buttons=( + [Button.inline("Info.", data="ownerinfo")] + if Owner_info_msg + else None + ), ) else: await event.reply( udB.get_key("STARTMSG").format(me=me, mention=mention), file=udB.get_key("STARTMEDIA"), - buttons=[Button.inline("Info.", data="ownerinfo")] - if Owner_info_msg - else None, + buttons=( + [Button.inline("Info.", data="ownerinfo")] + if Owner_info_msg + else None + ), ) else: name = get_display_name(event.sender) diff --git a/plugins/nightmode.py b/plugins/nightmode.py index 5719cd7dc..a2ea2dbd7 100644 --- a/plugins/nightmode.py +++ b/plugins/nightmode.py @@ -117,7 +117,9 @@ async def open_grp(): ), ) ) - await ultroid_bot.send_message(chat, "**NightMode Off**\n\nGroup Opened 🥳.") + await ultroid_bot.send_message( + chat, "**NightMode Off**\n\nGroup Opened 🥳." + ) except Exception as er: LOGS.info(er) diff --git a/plugins/stickertools.py b/plugins/stickertools.py index 9191aa90e..494a29bbf 100644 --- a/plugins/stickertools.py +++ b/plugins/stickertools.py @@ -115,9 +115,11 @@ async def pack_kangish(_): stiks.append( types.InputStickerSetItem( document=x, - emoji=random.choice(["😐", "👍", "😂"]) - if local - else (i.attributes[1]).alt, + emoji=( + random.choice(["😐", "👍", "😂"]) + if local + else (i.attributes[1]).alt + ), ) ) try: