-
Notifications
You must be signed in to change notification settings - Fork 0
Internal Command Docs
avery bertrand edited this page Apr 1, 2025
·
1 revision
Main command for tracking. Will create a persistent embed that updates based on line/station status.
| Argument | Description | Required? |
|---|---|---|
agency |
Agency long or short name | ✅ |
line |
Subway/train line name | 🟨 |
station |
Station name | 🟨 |
Note
At least line or station (or both) need to be specified.
Function call hierarchy:
- db.get_agency() # Gets internal agency ID from database
- sqlx::query() # Queries database for agency
- api.try_line() # Tries to get the internal and API id for the specified line e.g. Blue Line
- sqlx::query() # Checks line cache for existing line
- api.request() # Tries to get the line from the API
- api.try_station() # Gets station from the API
- api.request()
- db.add_tracking() # adds gathered information to DB
- tracking.start() # starts the tracking taskLists active trackings that the user has made.
Note
This is a subcommand, it's parent command is track, so it would be called like /track list.
| Argument | Description | Required? |
|---|
Function call hierarchy:
- db.get_trackings() # Gets all trackings from specified user id