diff --git a/bot.py b/bot.py index 858e006..68268c3 100644 --- a/bot.py +++ b/bot.py @@ -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]]: diff --git a/heidi_constants.py b/heidi_constants.py index bf35061..e3c2bfa 100644 --- a/heidi_constants.py +++ b/heidi_constants.py @@ -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) diff --git a/heidi_helpers.py b/heidi_helpers.py index 0d4c7d3..9780e39 100644 --- a/heidi_helpers.py +++ b/heidi_helpers.py @@ -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],