remove and ignore voicelines

This commit is contained in:
churl
2022-01-20 23:03:41 +01:00
parent 9ad9c78774
commit bd15c91ce2
5 changed files with 5 additions and 0 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@
*.txt
Pipfile.lock
/.idea/
/voicelines/

View File

@ -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

2
bot.py
View File

@ -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):
"""

Binary file not shown.

Binary file not shown.