An open API service indexing awesome lists of open source software.

https://github.com/bogdal/hubot-ionapp

Integration with timeION service
https://github.com/bogdal/hubot-ionapp

Last synced: 4 months ago
JSON representation

Integration with timeION service

Awesome Lists containing this project

README

          

# Hubot timeION Script

[![Build Status](https://travis-ci.org/bogdal/hubot-ionapp.svg?branch=master)](https://travis-ci.org/bogdal/hubot-ionapp)
[![npm version](https://badge.fury.io/js/hubot-ionapp.svg)](http://badge.fury.io/js/hubot-ionapp)

[![timeION](https://timeion.com/wp-content/uploads/2015/12/ion_logo_dark.svg)](https://timeion.com)

## Installation

Run the npm install command...

npm install hubot-ionapp

Add 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://.timeion.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 absent

### Returns 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-14

### Displays a list of IONapp team members and chat users mapped with them
mybot show me the team

### Maps chat user to the IONapp username
mybot remember me as abogdal

### Adds a home office requests
mybot I will be working at home on Monday
mybot I will be working at home on Feb 10 to 14

It covers all work time windows in specified date range. This command requires `admin` auth token.

## Docker Compose

Docker and [docker-compose](https://docs.docker.com/compose/install/) are required to be installed.

$ docker-compose build
$ docker-compose run hubot
mybot> mybot who's absent