From 9eb432dc542005f872c82eb49e1e7ab8c762e23c Mon Sep 17 00:00:00 2001 From: churl Date: Wed, 19 Jan 2022 19:56:25 +0100 Subject: [PATCH] fix docker directory --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index af27502..0a38319 100644 --- a/bot.py +++ b/bot.py @@ -204,7 +204,7 @@ class HeidiClient(discord.Client): """ sprechen """ - voicelines = map(lambda x: x.split(".")[0], os.listdir("sounds")) + voicelines = map(lambda x: x.split(".")[0], os.listdir("/sounds")) # only works from docker await message.channel.send("Voicelines:\n- " + reduce(lambda x, y: x + "\n- " + y, voicelines)) # await message.channel.send("Test") @@ -220,7 +220,7 @@ class HeidiClient(discord.Client): return voice_client = await voice_channel.connect() - audio_source = discord.FFmpegPCMAudio("sounds/" + message + ".mp3") + audio_source = discord.FFmpegPCMAudio("/sounds/" + message + ".mp3") # only works from docker voice_client.play(audio_source) while voice_client.is_playing():