Skip to content

meandor/samson

Repository files navigation

Samson

CircleCI

Samson lives in a cave, and he loves lying in his hammock, cuddling with his "Schnuffeltuch" (his security blanket), and dancing.

"Ich bin Samson, und ich schaff's!" -- Samson

An Erlang OTP application serving as a chatbot backend.

Build

rebar3 compile

Test

rebar3 eunit

Run

Erlang OTP app

To start only samson with rebar3:

rebar3 shell

Complete stack

To start samson with its external dependencies:

docker-compose up -d

Endpoints

Health endpoint

GET /health
# Returns 200 - {"status": "up"} 

Metrics endpoint

GET /metrics
# Returns 200 - text 

Returns Prometheus Metrics

Google Chat API

Handles incoming events and response according to Google Chat API. Body is in format of events.

POST /gchat/$GOOGLE_CHAT_ENDPOINT
# Returns 200 - {"text": "answer"} 

Links

Releases

No releases published

Packages

No packages published

Languages