/fists

Say hello

Primary LanguageC#MIT LicenseMIT

fists

Say hello

GET or POST https://fists.azurewebsites.net/api/fists Say hello to my friends Mortar and Pestle

Using in Slack

Assuming you've bound /fists to this app, there are two primary uses

/fists

Chooses one of the random fist pairs and returns it

/fists leftFist, rightFist
/fists leftFist and rightFist

Uses the provided fists

Purpose

This is a proof-of-concept Slack app. It serves little actual purpose, but it is fun.

Running locally

dotnet run

Get

curl -k "https://localhost:5001/api/fists"

Post

curl -k -X POST -H "content-type: application/x-www-form-urlencoded" -d "text=one+and+two" "https://localhost:5001/api/fists"

Post to WebHook

curl -k -X POST -H "content-type: application/x-www-form-urlencoded" -d "text=one+and+two" "https://localhost:5001/api/fists/WebHook"

Note: To use WebHook, you need to set the environment variable WEBHOOKURL before you dotnet run

export WEBHOOKURL="https://hooks.slack.com/services/[YOUR/WEBHOOK/URL]"
dotnet run
set WEBHOOKURL=https://hooks.slack.com/services/[YOUR/WEBHOOK/URL]
dotnet run

Weird Feature: CRNG-generated fists

If a fist is set to "random", then it will be replaced with a CRNG-generated string.