Simple golang FAAS powered by OpenFaas used as a Slack command.
This function return a random quote from @henri9813
Use https://jerome1337.o6s.io/henri-facts
For example
$ curl https://jerome1337.o6s.io/henri-facts
{
"response_type":"in_channel",
"text":"Il est blazing nické"
}
The
response_type
key is necessary when this FAAS is used as a Slack command
Add the following line at the end of your .bashrc
or .zshrc
$ cowsay $(curl -s https://jerome1337.o6s.io/henri-facts | jq ".text")
- cowsay
- jq