Serverless Framework function for handling Slack application command.
In your Serverless Framework project:
sls function create functions/slack-command
Copy this repo into your Serverless Framework project.
Change s-variables-common.json.template
to s-variables-common.json
and fill it with the required settings.
If needed, tweak functions/slack-oauth/s-function.js
to adhere to your desired redirect_uri endpoint.
Create the dependencies packages:
pip install -t functions/vendored/ -r requirements.txt
Deploy it!
sls dash deploy