Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/settings.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ USER_IDS:
TEMPVC_CATEGORY_ID: 123456789012345679
# Set this to the channel ID where you want the temporary voice channels to be created.
TEMPVC_CHANNEL_ID: 123456789012345679
TEMPVC_BASE_NAME: "/tmp/"

# This will automatically give people with a status regex a role.
STATUS_ROLES:
Expand Down
2 changes: 1 addition & 1 deletion tux/cogs/services/temp_vc.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class TempVc(commands.Cog):
def __init__(self, bot: Tux) -> None:
self.bot = bot
self.base_vc_name: str = "/tmp/"
self.base_vc_name: str = CONFIG.TEMPVC_BASE_NAME or "/tmp/"

@commands.Cog.listener()
async def on_voice_state_update(
Expand Down
1 change: 1 addition & 0 deletions tux/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def BOT_TOKEN(self) -> str: # noqa: N802
# Temp VC
TEMPVC_CATEGORY_ID: Final[str | None] = config["TEMPVC_CATEGORY_ID"]
TEMPVC_CHANNEL_ID: Final[str | None] = config["TEMPVC_CHANNEL_ID"]
TEMPVC_BASE_NAME: Final[str | None] = config["TEMPVC_BASE_NAME"]

# GIF ratelimiter
RECENT_GIF_AGE: Final[int] = config["GIF_LIMITER"]["RECENT_GIF_AGE"]
Expand Down