LAUNCHBOT
A bot to build a launch list by sharing invites and ranking users to earn early access.
SETUP
-
Register the bot with Microsoft
Create a bot on https://dev.botframework.com and follow the steps to setup a Facebook channel.
-
Register the app with Facebook
The Facebook channel config page will walk you through creating a Facebook page & app for your bot.
RUNNING THE BOT
-
Git clone this repository into a folder
-
Run
npm install
-
Install then run
redis-server
-
Download and install the Bot Framework Emulator
-
Or, install and run ngrok using
ngrok http 3978
For the endpoint you setup on dev.botframework.com, copy the https link ngrok setup and set
<ngrok link>/api/messages
as your bots endpoint. -
Run the node app
In a separate console window set BOTFRAMEWORK_APPID and BOTFRAMEWORK_APPSECRET and run `node app.js
-
Go to http://localhost:3978/ to see the dashboard
DEPLOY
- Create a Heroku account with
heroku apps:create
and add on redis. - Push repo to Heroku and set up redis
API
Rank [GET] - requires the userid, first_name, last_name
Verify [GET] - requires userid
Lookup [GET] - requires userid
Remove [GET] - requires userid
Messages [POST] - Sends and receives messages from chat platforms to Microsoft