geeksforsocialchange / imok

A simple bot to support people doing risky activities
https://gfsc.studio/blog/2021/imok-is-launched/
MIT License
11 stars 1 forks source link

Add 'out of hours' feature #68

Open GuyHerrmann opened 3 years ago

GuyHerrmann commented 3 years ago

Overview: We will only be monitoring the telegram from 9-5/6 from monday till friday (when the dallas court is open). People should only be using this service then anyway. This feature would inform people that nobody will be checking the app closely at this time and say when open hours are for the service/ give an emergency contact number

Implementation: If a SOS is sent, the system should still register the SOS because someone who has been detained may have just had access to their phone at that time. The working hours could be set either through the config, or in the admin page

Could be implemented with a decorator function around the function that receives the message which checks if the current time is within the accepted time range and continues else messages the user and tells them that it is out of hours, but allows SOS requests.