Does anyone know how to loop the same source in FFmpeg?
This is my code:
@bot.command(pass_context = True)
async def join(ctx):
if (ctx.author.voice):
channel = ctx.message.author.voice.channel
voice = await channel.connect()
source = FFmpegPCMAudio('test.mp3')
player = voice.play(source)
else:
await ctx.send('You need to be in a Voice-Channel.')
I want the audio-file "test.mp3" looped permanently. I've searched on the internet but all the results given there were outdated.