Skip to content

Commit 692eb2a

Browse files
committed
pylint: auto fixes
Signed-off-by: apisuserbot <nafisqurtubi154@gmail.com>
1 parent 0271f9a commit 692eb2a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

userbot/modules/chat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ async def fetch_info(chat, event):
266266
msg_info = None
267267
print("Exception:", e)
268268
# No chance for IndexError as it checks for msg_info.messages first
269-
first_msg_valid = bool(msg_info and msg_info.messages and msg_info.messages[
270-
0].id == 1)
269+
first_msg_valid = bool(
270+
msg_info and msg_info.messages and msg_info.messages[0].id == 1)
271271
# Same for msg_info.users
272272
creator_valid = bool(first_msg_valid and msg_info.users)
273273
creator_id = msg_info.users[0].id if creator_valid else None

userbot/modules/www.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ async def pingme(pong):
129129
f"═⎆ **Sisa Waktu:** "
130130
f"`{uptime}` \n"
131131
f"**✠➲ Lord:** `{ALIVE_NAME}`" % (duration))
132-
f"═⎆ **Pesan:Pap Tengktopnya Kakak🥰🥰** "
132+
f"═⎆ **Pesan:Pap Tengktopnya Kakak🥰🥰** "
133+
133134

134135
@register(outgoing=True, pattern="^.sinyal$")
135136
async def pingme(pong):
@@ -152,6 +153,7 @@ async def pingme(pong):
152153
f"`{uptime}` \n"
153154
f"__|━|⎆__ **My king :** `{ALIVE_NAME}`" % (duration))
154155

156+
155157
@register(outgoing=True, pattern="^.uping$")
156158
async def pingme(pong):
157159
""" For .uping command, ping the userbot from any chat. """

0 commit comments

Comments
 (0)