Skip to content

ErikKalkoken/slacknowdemopython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slacknowdemopython

Demo showing how to use Slack with Now serverless, Python and Flask including call to Slack API

Requirements

  • Python 3

Needed Python packages:

Installation

  1. Install missing python packages (if any)
  2. Fork this repo on github
  3. Connect your now account with your github account
  4. Make sure the now app on github is connected to your repo
  5. Once you pushed a change you should get an alias to your repo on the now dashboard
  6. Create a Slack app in your workspace, add a slash command and use the alias from now as request URL for the slash command
  7. Add scopes channels:read and groups:read
  8. Install your Slack app into your workspace
  9. Retrieve the token from the Oauth page of your app and set the environment variable SLACK_TOKEN with it
  10. Add your slack token as secret in the now CLI with now secret add slack_token xoxp-xxx

Releases

No releases published

Packages

No packages published

Languages