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

https://github.com/concretesolutions/cs-links-api

Slack integrations for slash-command
https://github.com/concretesolutions/cs-links-api

Last synced: over 1 year ago
JSON representation

Slack integrations for slash-command

Awesome Lists containing this project

README

          

# cs-links-api

Slack integrations for slash-command

## Badges

[![CS-LINKS-API CI](https://github.com/concretesolutions/cs-links-api/workflows/CS-LINKS-API%20CI/badge.svg)](https://github.com/concretesolutions/cs-links-api/actions?query=workflow%3A%22CS-LINKS-API+CI%22)
[![codecov](https://codecov.io/gh/concretesolutions/cs-links-api/branch/master/graph/badge.svg?token=gR2Jju7yVw)](https://codecov.io/gh/concretesolutions/cs-links-api)

## How to use on Slack

Just type the slash command **link** or **contatos** with the desired keyword, as shown below.

`/link guia`

## Available keyword (for now)

| Keyword | Expected Result |
| --------------------------------------------------------------- | ------------------------------------------- |
| todos | Return all available links |
| valores | Return Valores Link |
| malote, malotes | Return Malote Link |
| guia | Return Guia de Sobrevivência link |
| viagem, viagens | Return Viagens link |
| benefício, beneficio, benefícios, beneficios, salário, salario | Return Atestado Médico link |
| padrão, padrao, material, materiais, apresentação, apresentacao | Return Materiais Padrão link |
| reembolso, reembolsos, adiantamento, adiantamentos | Return Reembolso & Adiantamento link |
| departamento pessoal, pessoal, dp | Return Departamento Pessoal link |
| evento, eventos, treinamento, treinamentos | Return Eventos & Treinamentos link |
| ponto, ponto eletrônico, horas, horas extras | Return Ponto Eletrônico & Horas Extras link |

`/contatos guia`

| Keyword | Expected Result |
| --------------------------------------------------------------- | ------------------------------------------- |
| todos | Return all available Links |
| contas | Return contas a pagar Link |
| cio, CIO | Return CIO Link |
| dp, departamento pessoal | Return Departamento Pessoal link |
| myte, expenses | Return Tyme & Expenses link |
| asoc | Return ASOC link |
| itseg, itSeg, planos | Return It´s Seg link |

## Testing

To run the chai tests for this code use
```npm run test```

To live serve this code in the browser
```node --require dotenv/config server.js```

Before serving make sure you have a _dotenv_ file (.env) with the environment variables as dummy links.

## **Disclaimer**

In now runs no AWS Lambda Free Tier :) No more dormant state !