Skip to content

Commit 6466abd

Browse files
committed
feat(config): add TEMPVC_BASE_NAME config variable
1 parent d88e22b commit 6466abd

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

config/settings.yml.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ USER_IDS:
6565
TEMPVC_CATEGORY_ID: 123456789012345679
6666
# Set this to the channel ID where you want the temporary voice channels to be created.
6767
TEMPVC_CHANNEL_ID: 123456789012345679
68+
TEMPVC_BASE_NAME: "/tmp/"
6869

6970
# This will automatically give people with a status regex a role.
7071
STATUS_ROLES:

tux/cogs/services/temp_vc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class TempVc(commands.Cog):
99
def __init__(self, bot: Tux) -> None:
1010
self.bot = bot
11-
self.base_vc_name: str = "/tmp/"
11+
self.base_vc_name: str = CONFIG.TEMPVC_BASE_NAME or "/tmp/"
1212

1313
@commands.Cog.listener()
1414
async def on_voice_state_update(

tux/utils/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ def BOT_TOKEN(self) -> str: # noqa: N802
132132
# Temp VC
133133
TEMPVC_CATEGORY_ID: Final[str | None] = config["TEMPVC_CATEGORY_ID"]
134134
TEMPVC_CHANNEL_ID: Final[str | None] = config["TEMPVC_CHANNEL_ID"]
135+
TEMPVC_BASE_NAME: Final[str | None] = config["TEMPVC_BASE_NAME"]
135136

136137
# GIF ratelimiter
137138
RECENT_GIF_AGE: Final[int] = config["GIF_LIMITER"]["RECENT_GIF_AGE"]

0 commit comments

Comments
 (0)