
Stamp is a utility for anyone who likes Discord timestamps but doesn’t like going to a site to generate them.
It’s a Discord interaction (slash command) that parses natural language time strings into user-localized timestamps. For
example, /timestamp next Monday at 3:15PM CST
would return the value of <t:1644620400:F>
Tech Stack
- Typescript Lambda for the singular Discord “Interactions endpoint”
- HTTP API Gateway (aka API Gateway V2)
- Deployed with CDK
Future Enhancements?
- Rewrite the processor function in a language other than typescript
- Discord requires interactions to respond in 3 seconds or less. Just considering the NL parser taking over 1s and 1-1.5s of function init, the function is dangerously close to not replying in time
- Persist user preferences such as default timezone
- Gracefully handle current DST status