Skip to content

Commit

Permalink
Update lyrics.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy1709 authored Sep 10, 2021
1 parent f51dd51 commit 9feb736
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions userbot/plugins/lyrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async def lyrics(event): # sourcery no-metrics
msg = f"**The songs found for the given query:** `{query}`\n\n"
if len(response["hits"]) == 0:
return await edit_or_reply(
event, f"**I can't find lyrics for the given query: **`{query}`"
catevent, f"**I can't find lyrics for the given query: **`{query}`"
)
for i, an in enumerate(response["hits"], start=1):
msg += f"{i}. `{an['result']['title']}`\n"
Expand All @@ -93,7 +93,7 @@ async def lyrics(event): # sourcery no-metrics
result = f"**The song found for the given query:** `{query}`\n\n"
if songno > len(response["hits"]):
return await edit_or_reply(
event,
catevent,
f"**Invalid song selection for the query select proper number**\n{msg}",
)
songtitle = response["hits"][songno - 1]["result"]["title"]
Expand Down

0 comments on commit 9feb736

Please sign in to comment.