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

Implement done feature #1

Open
mhewedy opened this issue Aug 20, 2024 · 0 comments
Open

Implement done feature #1

mhewedy opened this issue Aug 20, 2024 · 0 comments

Comments

@mhewedy
Copy link
Owner

mhewedy commented Aug 20, 2024

Users should send done command after paying for the invoice.

Lunchy keeps sending notifications every couple of hours for users who were involved in lunch activity but didn't pay for the lunch yet (didn't send the done command)

the scope for this should be 1 day only, everything should reset with the new day

The notification can be sent directly to the user, instead of to be sent to everyone in the group.

technical guidance

  • we will implement 1 command and 1 job here
  • we will have a list of done (done_list) that we will add to if the user sends the done command
  • every couple of hours, we will run the job to compare this list with the list of the users involved in the lunch activity
  • The done_list should reset with the new day (when the heads-up message is sent to remind users)
  • the notification should be sent during convenience hours, e.g. from 4 pm to 10 pm, and from 9 am to 11 am, and shouldn't be sent at night,
  • The notification can be sent directly to the user, instead of to be sent to everyone in the group.
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

No branches or pull requests

1 participant