1.4.1 • Published 4 years ago
on-duty-schedule v1.4.1
onDutySchedulle.js
onDutySchedulle is a cronJob wrap for onDutyJs, base on pm2.
Install
Install dependencies package
npm install
oryarn install
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.