play mkv sounds
All checks were successful
Build Heidi Docker image / build-docker (push) Successful in 8s
All checks were successful
Build Heidi Docker image / build-docker (push) Successful in 8s
This commit is contained in:
2
bot.py
2
bot.py
@ -281,7 +281,7 @@ async def say_voiceline(interaction: discord.Interaction, board: str, sound: str
|
||||
|
||||
await interaction.response.send_message(f"Heidi sagt: \"{board}/{sound}\"")
|
||||
|
||||
audio_source = discord.FFmpegPCMAudio(SOUNDDIR + board + "/" + sound + ".mp3") # only works from docker
|
||||
audio_source = discord.FFmpegPCMAudio(SOUNDDIR + board + "/" + sound + ".mkv") # only works from docker
|
||||
voice_client = await voice_channel.connect()
|
||||
voice_client.play(audio_source)
|
||||
|
||||
|
Reference in New Issue
Block a user