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

Add Penalty Protection (PrikkSkjold™️) #3

Open
AdrianAndersen opened this issue Jan 24, 2023 · 1 comment
Open

Add Penalty Protection (PrikkSkjold™️) #3

AdrianAndersen opened this issue Jan 24, 2023 · 1 comment
Labels
Feature A new feature

Comments

@AdrianAndersen
Copy link
Collaborator

Automatically unregister the user before the deadline, unless the user has explicitly confirmed the class.

There are two ways to use PrikkSkjold™️ for a class/classes

PrikkSkjold™️

The user can flip a toggle in sit-rezervo-confgen for each class. Eg. Enable PrikkSkold™️
Then, when sit-rezervo books the class, there is a "Confirm Class" button on the Slack message sit-rezervo sends.

  • If the user does not press the button before the unregister deadline, sit-rezervo automatically unregisters the user, and marks the class as unregistered, with PrikkSkjold™️ as the reason. (+ tags the user)
  • If the users does press the button, the class is confirmed, the button disappears, and the class is kept as normal. Nice to send a message to the user in thread to confirm that the class is "locked in"
  • At a certain offset before the deadline eg. two hours before the deadline, the sit-rezervo sends a message to the user in the thread for the class, reminding them that they need to confirm the class, to avoid it being unregistered.

AutoPrikkSkjold™️

A global toggle in sit-rezervo-confgen, where the user can enable AutoPrikkSkjold™️.
This feature automatically enables PrikkSkjold™️ for all bookings when the user has two Penalties.

@AdrianAndersen AdrianAndersen changed the title Add Penalty Protection (Prikkskjold™️) Add Penalty Protection (PrikkSkjold™️) Jan 24, 2023
@mathiazom mathiazom self-assigned this Jan 24, 2023
@mathiazom
Copy link
Owner

Will probably need some kind of persistance to store booking confirmations. Slack might provide bot storage, but I think we should go for a less Slack-dependant solution. Maybe it's time to try out Redis?

@mathiazom mathiazom removed their assignment Jun 10, 2023
@AdrianAndersen AdrianAndersen added Feature A new feature and removed enhancement labels Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature A new feature
Projects
None yet
Development

No branches or pull requests

2 participants