slash-command-lambda
Execute Slack's slash command from AWS Lambda.
Usage
AWS Setting
- Code entry type : Upload a .zip file
- upload
slash-command-lambda/ambda.zip
- set handler
slack_slash_command.lambda_handler
- upload
- set Environment variables
API_TOKEN
CHANNEL
- This should be an ID, such as
C8UJ12P4P
.
- This should be an ID, such as
COMMAND
- ex.
/shurg
- ex.
TEXT (Optional)
- ex.
*slash-command-lambda*
- ex.
Result
Custom build
- add package
pip install <<package>> -t .
- build zip
zip -r <<filename>> *
Author
Yusuke Uehara (@uskey512)
License
MIT