Skip to content

Commit

Permalink
pylint: auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ufoptg committed Jan 26, 2024
1 parent 9a204ad commit 7133f62
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 11 deletions.
4 changes: 3 additions & 1 deletion assistant/callbackstuffs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 10 additions & 6 deletions assistant/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 3 additions & 1 deletion plugins/nightmode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
8 changes: 5 additions & 3 deletions plugins/stickertools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7133f62

Please sign in to comment.