mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
Fix else if
This commit is contained in:
parent
f4eb5c42b0
commit
f34fb179a8
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ async def ytsearch(self: Client, ctx: Message, strings):
|
|||
return await ctx.reply_msg(strings("no_channel"))
|
||||
if len(ctx.command) == 1:
|
||||
return await ctx.reply_msg(strings("no_query"))
|
||||
query = ctx.text.split(" ", maxsplit=1)[1] if len(ctx.command) > 1
|
||||
query = ctx.text.split(" ", maxsplit=1)[1]
|
||||
search_key = rand_key()
|
||||
YT_DB[search_key] = query
|
||||
search = await main.VideosSearch(query).next()
|
||||
|
|
|
|||
Loading…
Reference in a new issue