Fix SOUNDDIR being in the wrong file
Some checks failed
Build Heidi Docker image / build-docker (push) Failing after 17s

This commit is contained in:
2023-12-09 17:28:09 +01:00
parent d7604b6604
commit 3335009692
3 changed files with 7 additions and 3 deletions

3
bot.py
View File

@ -243,9 +243,6 @@ async def choose(interaction: Interaction, option_a: str, option_b: str) -> None
# Sounds -----------------------------------------------------------------------------------------
SOUNDDIR: str = "/sounds" if DOCKER else "./heidi-sounds"
async def board_autocomplete(
interaction: Interaction, current: str
) -> List[Choice[str]]:

View File

@ -5,6 +5,8 @@ from dotenv import load_dotenv
# This is run when this file is imported
load_dotenv()
print("Debug: Importing heidi_constants.py")
# ================================================================================================ #
# ================================================================================================ #
@ -17,6 +19,8 @@ DOCKER = os.getenv("DOCKER") == "True"
CONFIGPATH = "/config" if DOCKER else "."
USERCONFIGNAME = "Heidi_User.conf"
SOUNDDIR: str = "/sounds" if DOCKER else "./heidi-sounds"
# IDs of the servers Heidi is used on
LINUS_GUILD = discord.Object(id=431154792308408340)
TEST_GUILD = discord.Object(id=821511861178204161)

View File

@ -4,6 +4,9 @@ from typing import Union
import discord
from discord import Interaction, VoiceChannel, Member
from heidi_constants import *
print("Debug: Importing heidi_helpers.py")
async def play_voice_line(
interaction: Union[Interaction, None],