#Wavelink doesn't play audio.
1 messages · Page 1 of 1 (latest)
@client.bridge_command()
async def play(ctx, search: str):
vc = ctx.voice_client # define our voice client
if not vc: # check if the bot is not in a voice channel
vc = await ctx.author.voice.channel.connect(cls=wavelink.Player) # connect to the voice channel
if ctx.author.voice.channel.id != vc.channel.id: # check if the bot is not in the voice channel
return await ctx.respond("You must be in the same voice channel as the bot.") # return an error message
song = await wavelink.YouTubeTrack.search(query=search, return_first=True) # search for the song
if not song: # check if the song is not found
return await ctx.respond("No song found.") # return an error message
await vc.play(song) # play the song
await ctx.respond(f"Now playing: `{vc.source.title}`") # return a message```
Did you setup the wavelink nodes?
Yeah, I did
it connects to it as well, but I also get this now:
Node d2a7c46fcb743659 is ready!```
how about you do what it says: Consider updating your Lavalink Server
Yeah, doing it now
Seems like it works now, thanks