1.4.1 • Published 4 years ago

on-duty-schedule v1.4.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

onDutySchedulle.js

onDutySchedulle is a cronJob wrap for onDutyJs, base on pm2.

Install

  1. Install dependencies package npm install or yarn install

  2. Set login info

  • Copy .env.example to .env
  • Set your username and password in .env
  • You can also set timer option
    • default workDay: 1-5
    • default punchTime: 10,19
  • Create a bot on telegram. @botfather
    • Add your bot appToken into .env
    • Add you userID into .env

Run

For NPM: Command: npm run start npm run stop or enter command npm run to list all options.

For Yarn: use Command: yarn start to start, yarn stop to stop.