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
- Host: GitHub
- URL: https://github.com/concretesolutions/cs-links-api
- Owner: concretesolutions
- License: gpl-3.0
- Created: 2019-08-01T13:44:58.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-06T17:20:54.000Z (about 3 years ago)
- Last Synced: 2025-03-16T21:07:15.076Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 1.13 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cs-links-api
Slack integrations for slash-command
## Badges
[](https://github.com/concretesolutions/cs-links-api/actions?query=workflow%3A%22CS-LINKS-API+CI%22)
[](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 !