ldenman / slack-stockbot

node.js slack bot that fetches stock quotes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

slack-stockbot

A simple bot that listens and fetches a quote when someone mentions a symbol (ex $AAPL or $GOOG).

Deployment

Heroku

Setup

I had to run the following to disable web service. One time.

heroku ps:scale web=0
heroku ps:scale worker=1

The Procfile informs heroku to use a worker but I had to run the commands above in addition when I was setting up.

git remote add heroku ...
git push heroku master

Also, set the token environment variable in heroku to the token which slack issued for the bot.

heroku config:set token=TOKENFROMSLACK

Development

npm install
token=TOKENFROMSLACK node stockbot.js

About

node.js slack bot that fetches stock quotes

License:MIT License


Languages

Language:JavaScript 100.0%