Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send DM to user on Form Submission #124

Open
janine9vn opened this issue Dec 25, 2021 · 0 comments
Open

Send DM to user on Form Submission #124

janine9vn opened this issue Dec 25, 2021 · 0 comments
Labels
P2 Medium priority tasks. triage Issues that require triage attention type: feature A new feature that should be added to the application.
Projects

Comments

@janine9vn
Copy link
Contributor

Description

Send a DM to a user after they have submitted a form. This may, or may not, include snekbox results if there is a code evaluation component.

Justification

Sometimes it is nice if users get notified about their submission. Code Jam participants and Esoteric Challenge participants should also get notified/a role added if snekbox evaluation goes correctly.

Implementation

This should be implemented as a Starlette background task. This has to ignore/handle all errors (DMs closed, not in server, etc.). First, this has to make sure is there already a DM channel open with a user. If there isn't, this should open it. After this send endpoint can be used.

The interface with the Discord API for the DM and/or role addition is via an HTTP Request to the Discord API. The backend already has access to a bot token to use (Python's token specifically).

@janine9vn janine9vn added P2 Medium priority tasks. type: feature A new feature that should be added to the application. triage Issues that require triage attention labels Dec 25, 2021
@HassanAbouelela HassanAbouelela added this to In progress in Forms Feb 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Medium priority tasks. triage Issues that require triage attention type: feature A new feature that should be added to the application.
Projects
Forms
In progress
Development

Successfully merging a pull request may close this issue.

1 participant