Answer the question
In order to leave comments, you need to log in
How to play music in voice chat via discord bot without FFmpeg?
You need to make a command through which the bot will launch the music file in the voice chat in discord.
There is such a code
@bot.command()
async def play(ctx, track):
channel = ctx.message.author.voice.channel
if track == "ld":
song_there = os.path.isfile('ld.mp3')
await channel.play(source=song_there)
await ctx.send(f'Сейчас играет: **музыка**')
else:
pass
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question