1.0.1 • Published 8 years ago

hubot-attendance v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

npm version

hubot-attendance

An attendance logging script for hubot

Description:

Attendance command using Hubot.

This script is customized from otsubot. Difference(May 14, 2016) is following:

  • CSV output format support.
  • A future arrive response changed.
  • A working hours calculation method changed (flex-time).
  • Registered as a npm command.
  • Translate into English.

Installation

Run the npm install command...

npm install hubot-attendance

Add the script to the external-scripts.json file

["hubot-attendance"]

Commands:

  • hi [-u <user>] [[<date>] <from time>[-<to time>]] - Set a working start time.
  • bye [-u <user>] [[<date>] [<from time>-]<to time>] - Set a working end time.
  • list [-u <user>] [<month>] - Print a working time list.
  • csvlist [-u <user>] [<month>] - Print a working time list as a csv format.

Formatting

  • <date> is YYYY/MM/DD, YYYYMMDD, YY/MM/DD, YYMMDD, MM/DD, M/D or MDD
  • <time> is HH:MM, HHMM, H:MM, HMM, HH or H
  • <month> is YYYY/MM, YYYYMM, YY/MM, YYMM, MM or M

Examples:

Basics

  • hi - Type this when you arrive your company.
  • bye - Type this when you leave your company.
  • list - Type this when you want to see a working time list of this month.

Advanced

  • hi 9 - You arrived your company at 9:00.
  • bye 1730 - You left your company at 17:30.
  • hi 1224 0900 - December 24, you worked from 9:00.
  • bye 12/24 9-1730 - December 24, you worked from 9:00 to 17:30.
  • list 201412 - You want to see a working time list of December 2014.
1.0.1

8 years ago

1.0.0

8 years ago