0.0.5 • Published 10 years ago
hubot-ionapp v0.0.5
Hubot IONapp Script
Installation
Run the npm install command...
npm install hubot-ionappAdd the script to the external-scripts.json file
["hubot-ionapp"]Configuration
Set the environment variables
export HUBOT_IONAPP_COMPANY_NAME='my_company'
export HUBOT_IONAPP_AUTH_TOKEN='1234..'To obtain auth token go to https://<company name>.ionapp.com/api/tokens/ and generate one.
Some of the commands require a token generated by the administrator.
Usage
Returns a list of users who are absent
mybot who's absentReturns a list of users who will be absent on specified day
mybot who'll be absent tomorrow
mybot who'll be absent on Friday
mybot who'll be absent on Feb 28
mybot who'll be absent on 2015-02-14Displays a list of IONapp team members and chat users mapped with them
mybot show me the teamMaps chat user to the IONapp username
mybot remember me as abogdalAdds a home office requests
mybot I will be working at home on Monday
mybot I will be working at home on Feb 10 to 14It covers all work time windows in specified date range. This command requires admin auth token.
Docker Compose
Docker and docker-compose are required to be installed.
$ docker-compose build
$ docker-compose run hubot
mybot> mybot who's absent