Slack Integration for Displaying Stock Information
-
moved to typescript
-
less is more, the plotly integration has been removed. stockbot replies now with a single line of key values
A Slack slash-command and an incoming webhook must be configured.
config.json
{
"slackToken":"secretToken",
"webHook":"https://hooks.slack.com/services/yourWebHook",
"port":4715,
"channel": "stocks",
"botName": "stockbot"
}
create a config.json and run
npm install
npm start
users can display stock information with an appropriate slash command (eg. /stock aapl)
Apple Inc.: 114.6$ (+1%) Dividend: 2.0100% - 52w: 89.5-123.8$ -7.4110% below its 52 high AAPL on google and yahoo