1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 21:44:21 +00:00

Fix bot using only first argument for search

This commit is contained in:
Steffo 2018-06-04 21:27:56 +02:00
parent 7e5656338d
commit f9626b8826

View file

@ -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.") await client.send_message(channel, f"✅ Video aggiunto alla coda.")
return return
# Search the parameter on youtube # Search the parameter on youtube
search = params[1] search = " ".join(params[1:])
# This is a search # This is a search
await add_video_from_url(url=f"ytsearch:{search}") await add_video_from_url(url=f"ytsearch:{search}")
await client.send_message(channel, f"✅ Video aggiunto alla coda.") await client.send_message(channel, f"✅ Video aggiunto alla coda.")