Skip to content

Slack command for stock prices (using chalice framework)

Notifications You must be signed in to change notification settings

bennybauer/chalice-slack-stock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

chalice-slack-stock

This repo uses SlackStocks - a slack slash command that gives you pricing information on a stock ticker, together with Chalice - a Python Serverless Microframework for AWS.

Unlike Zappa, Chalice doesn't use WSGI to serve the requests.

Usage

Currently there's no simple way to initialize an existing chalice project, so follow the next steps:

Set up you AWS credentials

Create virtual env

mkvirtualenv my-chalice

Install Chalice

pip install chalice

Create a new chalice project

chalice new-project chalice-slack-stock
cd chalice-slack-stock

Overwrite app.py and requirements.txt with those of this repository

Install requirements

pip install -r requirements.txt

Deploy

chalice deploy

In your slack team settings, add a Slash Command Configuration Add a custom slash command configuration

Make sure your settings are like so:

  1. Add the command name "/stock"
  2. Add in the URL like so "http:///stock
  3. Set the Method type to GET
  4. If you've configured it correctly then you should be good to go! I've added a setup screenshot below as well

Add a custom slash command configuration

About

Slack command for stock prices (using chalice framework)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages