File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ USER_IDS:
6565TEMPVC_CATEGORY_ID: 123456789012345679
6666# Set this to the channel ID where you want the temporary voice channels to be created.
6767TEMPVC_CHANNEL_ID: 123456789012345679
68+ TEMPVC_BASE_NAME: "/tmp/"
6869
6970# This will automatically give people with a status regex a role.
7071STATUS_ROLES:
Original file line number Diff line number Diff line change 88class 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 (
Original file line number Diff line number Diff 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" ]
You can’t perform that action at this time.
0 commit comments