Here's how to get it running:
yarn) and then
- Obtain a Wit API token. Put this in the
- Obtain a Slack bot access token. Put this in the
- To run on Facebook Messenger too, do the incredibly complicated dance to obtain Facebook credentials. Set the
FB_PAGE_TOKENvariable for your bot and the
FB_VERIFY_TOKENvariable to the string you chose when setting up your webhook.
node build/bot.js. Use
-sto run on Slack or
-fto run on Facebook. (Both can work at once.)
Or, you can run a local version for fun by skipping the Slack token and providing the
-t flag (for terminal).
Because there are a lot of environment variables involved, you might want to put them in a .env file. If you do that, you can run the bot using a convenient Make target:
$ make run ARGS=-t