Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jerome1337/henri-facts

Serverless FAAS used to work as a Slack command
https://github.com/jerome1337/henri-facts

Last synced: 6 days ago
JSON representation

Serverless FAAS used to work as a Slack command

Awesome Lists containing this project

README

        

# Henri Facts

[![OpenFaaS](https://img.shields.io/badge/openfaas-cloud-blue.svg)](https://www.openfaas.com)

Simple golang FAAS powered by OpenFaas used as a Slack command.

This function return a random quote from [@henri9813](https://github.com/henri9813)

## Usage

Use https://jerome1337.o6s.io/henri-facts

For example

```bash
$ curl https://jerome1337.o6s.io/henri-facts
```

#### Response

```json
{
"response_type":"in_channel",
"text":"Il est blazing nické"
}
```

> The `response_type` key is necessary when this FAAS is used as a Slack command

## For a funny terminal

Add the following line at the end of your `.bashrc` or `.zshrc`

```bash
$ cowsay $(curl -s https://jerome1337.o6s.io/henri-facts | jq ".text")
```

#### Requirements

* cowsay
* jq