Skip to content

Commit

Permalink
Merge pull request #29 from uaf-cs/fix/update-links
Browse files Browse the repository at this point in the history
  • Loading branch information
katlyn authored Sep 1, 2023
2 parents fa18039 + 38d3c81 commit 151d473
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions docker-compose.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions src/commands/classes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
}
)
}
Expand Down
1 change: 1 addition & 0 deletions src/custom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 151d473

Please sign in to comment.