WEEE-Open / weeelab-telegram-bot

Telegram bot for querying the weeelab log and some additional cool stuff.
GNU General Public License v3.0
8 stars 4 forks source link

Add maximum capacity checks to /tolab #83

Closed alecello closed 3 years ago

alecello commented 3 years ago

The bot should check that there is available space in lab before allowing someone to place a tolab. The check can be done assuming that whoever is inlab leaves either by the end of the time slot (e.g. at 5pm) or after they have been there for the duration of one full time slot (e.g. 1h 30m after the tolab, no matter at what hour the tolab has been placed).

Maybe also add a visible warnigng to the tolab message to remember the user at what hour they need to leave

lvps commented 3 years ago

In the end, nothing really matters. This also didn't matter, since people stay for random amounts of time, not necessarily 1 h 30 m.