mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Fix bot using only first argument for search
This commit is contained in:
parent
7e5656338d
commit
f9626b8826
1 changed files with 1 additions and 1 deletions
|
@ -372,7 +372,7 @@ async def cmd_play(channel: discord.Channel, author: discord.Member, params: typ
|
|||
await client.send_message(channel, f"✅ Video aggiunto alla coda.")
|
||||
return
|
||||
# Search the parameter on youtube
|
||||
search = params[1]
|
||||
search = " ".join(params[1:])
|
||||
# This is a search
|
||||
await add_video_from_url(url=f"ytsearch:{search}")
|
||||
await client.send_message(channel, f"✅ Video aggiunto alla coda.")
|
||||
|
|
Loading…
Reference in a new issue