usage: modify the `check_init_permit.py` file.
Please see the orignal repo for more details: https://github.com/tangbao/NJ-MVC-Appointment-Helper
The following is the orignal readme:
An UNOFFICIAL Telegram bot that helps you find the most recent available appointment place for you.
If it could help you, please give me a star. Appreciated.
I really hope this COVID-19 pandemic can end soon so that everything can go back to normal. Hope this bot can help you a little.
Stay safe.
Please always update to the newest version before reporting any bugs.
To receive updates in real time, you can subscribe to Telegram channel @njmvc_bot_notif.
For now, I am working on the persistence of the bot - make everything, including the job queue of the bot persistent after restarting the bot. So please remember to go back and check for updates.
Note that you can only use /check
function of this demo bot. Only authorized users can use /subscribe
. I do not make
it fully public because I cannot afford too much cloud resources.
You are welcome to contact me to be an authorized user, but there is no warranty to use this bot.
The logger of the bot may record your Telegram username and all the messages you send to the bot. Your Telegram user id will be used to verify if you are an authorized user or not. All the data collected by the bot will only be used for debug and will not be used for any analytics or shared/sold to a third party.
If you do not agree with this privacy policy, please do not use the bot, and consider building your own bot.
Privacy disclaimer updated 2021 Jul 28.
/check
Check the most recent available places for appointment.
/subscribe
Receive a notification when a more recent time slot is available. Authorized users only.
You can have at most three subscriptions.
/mysub
Manage your subscriptions.
/help
Show the help message.
/updateconfig
Update the config so that you do not need to restart the bot. Admin user only.
/check
/subscribe
An example of a running subscription
/mysub
Use at your own risk. There is NO WARRANTY.
- Apply for a Telegram bot from @BotFather. See official instructions. Remember to get the API token.
- Get your (or other authorized users') user id from @userinfobot.
In the current version, the bot is not persistent. It means that everything will lose after you restart the bot. You have to create the subscriptions again.
git clone https://github.com/tangbao/NJ-MVC-Appointment-Helper.git
- [Optional but recommended] Create and activate your virtual env, like Anaconda.
pip install -r requirements.txt
- Check
config.yaml
if you want some customized settings, like the maximum number of subscriptions a user can create. - Make a copy of
config.secret.yaml.example
, name it asconfig.secret.yaml
, follow the comments inside to finish the config. - Run
bot.py
and start using!
The bot is using python-telegram-bot, please refer to its documentation for more detailed information about docs, deployment, and so on.
- Make the location list be updated automatically.
- Make the bot persistent - subscription still exists after the bot restarts.
- Automatically submit an appointment (I guess I will never do this).
You can open an issue or email me (i AT tbis DOT me) directly. You can also contact me @kirov_dev at Telegram. PR is welcome.
The project is published under the GNU General Public License - v3.0.