A Slack bot to feed your fish.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Initial Jan 6, 2017
.gitignore ignore config Jan 6, 2017
Procfile
README.md
config.secret.example.js
package.json

README.md

Fish Feed Bot

Uses IBM Watson's Conversation API to recognize intent to feed your fish using a Particle Photon and a couple of servos.

Blog post: https://bikesgrindsandlife.com/2016/12/10/fish-feeding-as-a-service/

Also uses Botkit by Howdy.ai to handle bot functionality for Slack.

Setup

Create a IBM Bluemix account and create a Conversation service. This will provide you with credentials to use in your config.

You are going to need a new Slack bot user. You can create a new one for your Slack account here. This will provide you with your Slack API Token.

Your Particle access token secures the cloud function so only you can call it. Learn how to generate one here.

You can find your Particle device id under the "devices" menu of the Particle IDE.

Rename config.secret.example.js to config.secret.js and fill in the credentials with your own.

Deployment

This project is ready to deploy on Heroku. Just provide your environment variables to your Heroku project:

WATSON_CONVERSATION_USERNAME

WATSON_CONVERSATION_PASSWORD

WATSON_CONVERSATION_WORKSPACEID

WATSON_CONVERSATION_VERSIONDATE

SLACK_API_TOKEN

PARTICLE_DEVICE_1

PARTICLE_ACCESS_TOKEN