Add a /dining soon subcommand #244

Open
opened 2026-10-08 04:27:05 +00:00 by tentype · 0 comments
Member

Objective

Add /dining soon, which returns a list of dining locations that are open now or opening in the next 60 mins. Essentially its output should only consist of locations marked with 🟢 (open), ⚠️ (open but closing soon) or 🔔 (closed but opening soon; this is what makes the command different from /dining open).

Also add its /dining soon-verbose equivalent, which does the same thing but with all page embeds sent at once.

Suggested Approach

First, add the subcommands and their appropriate descriptions to the command variable (Line 258 in src/commands/dining.ts). In the description, make sure to specify "open now or opening in the next 60 mins" (or equivalent). Don't just write "opening soon", since that's a little ambiguous.

Then, take a look at Line 312 to see an example for /dining open. You'll do the same thing but filter for open and opening soon locations.

It may be helpful to check the conditional logic in getCurrentStatus to see how we currently determine what status a location should get. Feel free to refactor the code and isOpen as needed.

## Objective Add `/dining soon`, which returns a list of dining locations that are open now __or__ opening in the next 60 mins. Essentially its output should only consist of locations marked with 🟢 (open), ⚠️ (open but closing soon) or 🔔 (closed but opening soon; this is what makes the command different from `/dining open`). Also add its `/dining soon-verbose` equivalent, which does the same thing but with all page embeds sent at once. ## Suggested Approach First, add the subcommands and their appropriate descriptions to the `command` variable ([Line 258 in src/commands/dining.ts](https://git.cmu.dev/ScottyLabs/dalmatian/src/commit/e71f153f904ef7b848a7e5c6ca5d2bd39ed43c53/src/commands/dining.ts#L258)). In the description, make sure to specify "open now or opening in the next 60 mins" (or equivalent). Don't just write "opening soon", since that's a little ambiguous. Then, take a look at [Line 312](https://git.cmu.dev/ScottyLabs/dalmatian/src/commit/e71f153f904ef7b848a7e5c6ca5d2bd39ed43c53/src/commands/dining.ts#L312) to see an example for `/dining open`. You'll do the same thing but filter for open and opening soon locations. It may be helpful to check the [conditional logic in `getCurrentStatus`](https://git.cmu.dev/ScottyLabs/dalmatian/src/branch/main/src/commands/dining.ts#L149) to see how we currently determine what status a location should get. Feel free to refactor the code and `isOpen` as needed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ScottyLabs/dalmatian#244
No description provided.