diff --git a/commands/handbook.js b/commands/handbook.js index 3799f703..3606d055 100644 --- a/commands/handbook.js +++ b/commands/handbook.js @@ -48,7 +48,7 @@ module.exports = { // study_level, // school, // campus, - equivalents, + // equivalents, raw_requirements, exclusions, // handbook_note, @@ -74,7 +74,7 @@ module.exports = { value: raw_requirements.replace( /[A-Z]{4}[0-9]{4}/g, - `[$&](${handbookURL}$&)`, + `[$&](${handbookURL}/$&)`, ) || "None", inline: true, }, @@ -86,8 +86,8 @@ module.exports = { { name: "Equivalent Courses", value: - Object.keys(equivalents) - .map((course) => `[${course}](${course})`) + Object.keys(exclusions) + .map((course) => `[${course}](${handbookURL}/${course})`) .join(", ") || "None", inline: true, }, @@ -95,7 +95,7 @@ module.exports = { name: "Exclusion Courses", value: Object.keys(exclusions) - .map((course) => `[${course}](${handbookURL}${course})`) + .map((course) => `[${course}](${handbookURL}/${course})`) .join(", ") || "None", inline: true, }, diff --git a/config/handbook.json b/config/handbook.json index 9a8d7097..99b9c5dc 100644 --- a/config/handbook.json +++ b/config/handbook.json @@ -1,4 +1,4 @@ { "apiURL": "https://circlesapi.csesoc.app", - "handbookURL": "https://www.handbook.unsw.edu.au/undergraduate/courses/2022/" + "handbookURL": "https://www.handbook.unsw.edu.au/undergraduate/courses/2024" }