webdizz / ctrbot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

strbot

Repository contains source code of simple chat bot to demonstrate capabilities for CTR specific needs.

This is also a demonstration of GCP Functions capabilities along with power of Chatbots.

TODO

Deployment

gcloud beta functions deploy webhook --runtime nodejs8 --trigger-http --memory 128MB  --set-env-vars PAGE_ACCESS_TOKEN=SOME_PAGE_ACCESS_TOKEN,VERIFY_TOKEN=SOME_VERIFY_TOKEN

Testing

External:

curl -v -X POST "https://us-central1-ctrbot.cloudfunctions.net/webhook/handler?anything"

Local:

node index.local.js
curl -X POST "localhost:1337/handler"

Dependencies

About

License:Apache License 2.0


Languages

Language:JavaScript 100.0%