Link to courses that are referenced in /course #206
Labels
No labels
beginner friendly
bug
chore
documentation
duplicate
feature
help wanted
invalid
needs-triage
question
size/L
size/M
size/S
size/XL
size/XS
urgent
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/dalmatian#206
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Objective
Whenever a course code appears in a course's description, prereqs, or coreqs, link ScottyLabs' corresponding course website.
This should support both
xx-xxxandxxxxxformats (with or without a dash), but keep in mind the ScottyLabs link will only work withxx-xxx, so you might need to reformat.For example,
/course 15-122returns an embed withThese two course codes should be linked like so:
Suggested Approach
Edit
src/commands/course.ts. ImportSCOTTYLABS_URLfromconstants.tsand thehyperlinkfunction from discord.js.You may find it helpful to use the string
replacefunction with a regular expression.