diff --git a/docker-compose.example.yaml b/docker-compose.example.yaml index 4e8754e..bb435b0 100644 --- a/docker-compose.example.yaml +++ b/docker-compose.example.yaml @@ -6,6 +6,7 @@ services: environment: # The root URL that the API will be served on API_ROOT: + FRONTEND_ROOT: # IDs for the guild and roles CS_GUILD: diff --git a/src/commands/classes/index.ts b/src/commands/classes/index.ts index a15e099..d991214 100644 --- a/src/commands/classes/index.ts +++ b/src/commands/classes/index.ts @@ -8,10 +8,10 @@ export const init = (bot: CommandClient): void => { // Redirect to the website for joining classes bot.registerCommand( 'joinclass', - 'Class registration has been moved to https://nookbot.katlyn.dev/. Please use the website to join classes and gain access to their channels.', + `Class registration has been moved to ${process.env.FRONTEND_ROOT}. Please use the website to join classes and gain access to their channels.`, { aliases: ['join'], - description: 'Join classes with https://nookbot.katlyn.dev/' + description: `Join classes with ${process.env.FRONTEND_ROOT}` } ) } diff --git a/src/custom.d.ts b/src/custom.d.ts index 307969b..f81cb25 100644 --- a/src/custom.d.ts +++ b/src/custom.d.ts @@ -12,6 +12,7 @@ declare global { namespace NodeJS { interface ProcessEnv { API_ROOT: string + FRONTEND_ROOT: string CS_GUILD: string CS_ADMIN: string CS_APPROVED: string