/donna-scheduler

🇨🇱 Pay your taxes, automatically.

Primary LanguageJavaScriptMIT LicenseMIT

Donna Scheduler

License: MIT JavaScript Style Guide

About

🇨🇱 A bot 🤖 that pays your taxes, automatically.

⚠️ If you only want a CLI command to pay your taxes, you can use donna directly. donna-scheduler was done specifically to automate the CLI script without worrying about it.

How it works

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.

Features

  • 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.

Deployment

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:

Deploy

Step 2:

Now add a job to your scheduler:

  • Schedule: every day at anytime you want
  • Run command: node pay

Done 🎉 click "Save Job"

scheduler

Environment variables

Here is a description of the environment variables:

  • RUT and PASSWORD: your SII credentials (Required).
  • MONGODB_URI: a MongoDB URI (Required).
  • BOT_TOKEN and BOT_CHANNEL: Telegram bot token and channel so you can receive a notification about a successfull payment. You can setup your own with @botfather (Optional).

Requirements

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.

Questions?

Send me a Twitter DM (@codewithnico) or open a issue.