Skip to content

Conversation

@xdamman
Copy link
Contributor

@xdamman xdamman commented Dec 2, 2025

npm run cron checks all upcoming events in the next 60 minutes and sends an email (using RESEND_API_KEY) to all attendees like this one:

Screenshot 2025-12-02 at 9 40 47 PM

The link then when the user clicks that link less than 15mn before the event, they will see this:

Screenshot 2025-12-02 at 9 41 58 PM

Then during the event (with a 15mn buffer), they will see this:

Screenshot 2025-12-02 at 9 41 44 PM

And the door will open and a message is sent to the #door channel on discord ($name opened the door for Crypto Wednesday).

Also took the opportunity to refactor the code and add some test cases.

Behind the scene, it generates a private key for the server and uses it to sign the url to open the door (so that it cannot be tempered with). That URL contains the name of the guest, eventUrl and the time and duration of the event. This makes sure nobody can generate such URL to open the door and that we keep track of who is opening the door.

Next step: automatically check people in using luma api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants