Only play entrance sound when other is present + reformat
All checks were successful
Build Heidi Docker image / build-docker (push) Successful in 14s

This commit is contained in:
2023-12-09 18:04:24 +01:00
parent 876232f674
commit f2ddb4ab66
3 changed files with 32 additions and 21 deletions

5
bot.py
View File

@ -120,8 +120,7 @@ def user_entrance_sound_autocomplete(
"""
boards: List[str] = os.listdir(SOUNDDIR)
all_sounds: Dict[str, List[str]] = {
board: os.listdir(f"{SOUNDDIR}/{board}/")
for board in boards
board: os.listdir(f"{SOUNDDIR}/{board}/") for board in boards
} # These are all sounds, organized per board, without file extension
# @todo Initially only suggest boards, because there are too many sounds to show them all
@ -191,7 +190,7 @@ async def heidi_exclaim(interaction: Interaction) -> None:
"Jetzt sei doch mal sexy!",
"Stell dich nicht so an!",
"Models müssen da halt durch!",
"Heul doch nicht!"
"Heul doch nicht!",
]
await interaction.response.send_message(random.choice(messages))