Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jerome1337/henri-facts
- Owner: Jerome1337
- License: mit
- Created: 2019-04-26T14:18:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-20T17:28:49.000Z (over 3 years ago)
- Last Synced: 2024-06-21T18:55:54.030Z (7 months ago)
- Language: Go
- Homepage: https://jerome1337.o6s.io/henri-facts
- Size: 48.8 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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