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.
Run the npm install command...
npm install hubot-attendance
Add the script to the external-scripts.json
file
["hubot-attendance"]
-
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.
-
<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
-
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.
-
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.