diff --git a/.gitignore b/.gitignore index e053df2..daf3a2b 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ *.txt Pipfile.lock /.idea/ +/voicelines/ diff --git a/README.md b/README.md index 719154d..161387f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ The environment variables "DISCORD_TOKEN" and "DISCORD_GUILD" must be set to run the bot. When run locally the boat loads an existing ".env"-file from the same directory as the script. When running a docker container an ".env"-file can be loaded with "--env-file .env". + +docker run -d --env-file .env --mount src=/root/HeidiBot/voicelines,target=/sounds,type=bind registry.gitlab.com/churl/heidibot:latest diff --git a/bot.py b/bot.py index 8cc1796..b94b78e 100644 --- a/bot.py +++ b/bot.py @@ -208,6 +208,8 @@ class HeidiClient(discord.Client): await message.channel.send("Voicelines:\n- " + reduce(lambda x, y: x + "\n- " + y, voicelines)) # await message.channel.send("Test") + # TODO: Don't connect to voice when file not found + # TODO: Filenames with spaces? @staticmethod async def say_voiceline(message): """ diff --git a/voicelines/KeinFoto.mp3 b/voicelines/KeinFoto.mp3 deleted file mode 100644 index 31fe045..0000000 Binary files a/voicelines/KeinFoto.mp3 and /dev/null differ diff --git a/voicelines/Opfer.mp3 b/voicelines/Opfer.mp3 deleted file mode 100644 index 613ae00..0000000 Binary files a/voicelines/Opfer.mp3 and /dev/null differ