π¨π± A bot π€ that pays your taxes, automatically.
donna-scheduler
was done specifically to automate the CLI script without worrying about it.
This bot will use your SII credentials and will try to pay your taxes.
Under the hood, this bot uses puppeteer (via donna) to automate this boring web task.
- Easy to use: just run
pay.js
script with the required environment variables. - Idempotent: run
pay.js
the times you want, it won't do the web task again if it already worked. - 1 click deploy: click "Deploy to Heroku" button or here and you're (almost) done.
I recommend you to deploy it to heroku because it's easy and free (free tier). Just click Deploy button and configure the scheduler.
Step 1:
Step 2:
Now add a job to your scheduler:
- Schedule: every day at anytime you want
- Run command: node pay
Done π click "Save Job"
Here is a description of the environment variables:
RUT
andPASSWORD
: your SII credentials (Required).MONGODB_URI
: a MongoDB URI (Required).BOT_TOKEN
andBOT_CHANNEL
: Telegram bot token and channel so you can receive a notification about a successfull payment. You can setup your own with @botfather (Optional).
So you want to pay your π¨π± taxes automatically? You have to pay your taxes using PEC payment.
Don't know how to pay with PEC? Read more here.
Send me a Twitter DM (@codewithnico) or open a issue.