remove and ignore voicelines
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,3 +5,4 @@
|
||||
*.txt
|
||||
Pipfile.lock
|
||||
/.idea/
|
||||
/voicelines/
|
||||
|
@ -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
2
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):
|
||||
"""
|
||||
|
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user