Skip to content

serializable/Symphony-Retro-Bot

Repository files navigation

Symphony-Retro-Bot

install and run

  1. Add /rsa/ directory inside /echo/. The .pem files live inside the rsa dir

  2. Install Dependencies

$ cd echo
$ npm i
  1. Configure Then setup a new .env file with the following properties:
BOT_PATH=./rsa/
BOT_NAME=
BOT_PASSWORD=
BOT_PRIVATE_KEY_PATH=./rsa/
BOT_PRIVATE_KEY_NAME=
BOT_USERNAME=
BOT_EMAIL_ADDRESS=
  1. Start
$ npm start

faq-server

####Query for an answer:

curl "http://localhost:3000/answer?question=Why%20is%20the%20sky%20blue%3F"

response (200):

{"key":"life.facts", "question":"Why is the sky blue?","answer":"I dont know"}

####Save a question/answer pair:

curl -d '{"key":"life.facts", "question":"Why is the sky blue?", "answer":"I dont know"}' -H "Content-Type: application/json" -X POST http://localhost:3000/save

response (201):

{"message":"saved!"}

Dev env dependencies

Node

node: v10.13.0 npm: 4.6.1

yoeman

npm install -g yo

symphony bot generator

npm install -g generator-symphony --cli

Creating a new bot

https://developers.symphony.com/symphony-developer/docs/symphony-generator

mkdir mybotapp
cd mybotapp
yo symphony

This was also a good reference: https://developers.symphony.com/symphony-developer/docs/creating-a-room-provisioning-bot-using-nodejs

About

Symphony Innovate 2019 Hackathon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published