This is a starter kit for creating bots for Cisco Spark using botkit.
You can clone this repo and have a bot deployed to Heroku in just a couple minutes.
Here are instructions for deploying on Heroku, but this can be adapted to any host.
-
Create a new bot account on Cisco Spark
-
Clone this repo
-
Create a new app on heroku
heroku apps:create my-spark-bot -
Add environment variables to the heroku app to match those in
.env. e.g.heroku config:add PUBLIC_ADDRESS=https://my-spark-bot.herokuapp.com -
Push to heroku
git push heroku -
Add your bot to your space.
-
Create a new bot account on Cisco Spark
-
Clone this repo
-
Install dependencies
yarn install -
Copy
.envto.env.localand customizecp .env .env.local -
Start the local development server
npm run server-dev -
Run ngrok (or something like it).
Because Spark uses webhooks to talk to bots, you must run something like ngrok locally to expose your server to the web. We've included a script to do this for you (requires ngrok)
npm run ngrok
Run the tests:
npm test
Run the test watcher:
npm run test-watch