Fix else if

This commit is contained in:
yasirarism 2023-06-16 13:59:39 +00:00 committed by GitHub
parent f4eb5c42b0
commit f34fb179a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()