PhantasWeng / onDutySchedule

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

onDutySchedule.js

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

branchs:

  • single-punch: use telegram bot to do a punch with script /punch, this version will not do schedule

About

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


Languages

Language:JavaScript 88.9%Language:Shell 11.1%