My Slack Bot collection with serverless infrastructure.
- Node.js v4.x.x
- Apex - a serverless infrastructure built on AWS Lambda.
- Terraform (optional) - a common configuration to launch infrastructure.
- aws-cli (optional)
$ git clone https://github.com/amowu/slack-bot.git
$ cd slack-bot
$ npm install
Setup AWS infrastructure with Terraform (optional):
$ apex plan
$ apex apply
...
Apply complete! Resources: 4 added, 0 changed, 0 destroyed.
Outputs:
lambdaFunctionRoleARN = arn:aws:iam::<account>:role/lambda_function
Copy and paste lambdaFunctionRoleARN
to role
field in project.json
.
$ apex deploy
coming soon...
- get Google Graph Knowledge API (WIP)
- add a Slack Slash Commands (WIP)
- function.json.example -> function.json (WIP)
- coming soon...
- put item to Jobs table (WIP)
- setup scheduled event source for Lambda function (WIP)
- duplicate function.json.example and rename to function.json, copy and paste your Slack channel webhook URL to function.json (WIP)
- coming soon...
- 申請相關 API KEY (LINE, Facebook Messenger, docomo, Google...) (WIP)
- function.json.example -> function.json (WIP)
- setup AWS infrastructure... (WIP)
- add Lambda IP range to LINE whitelist (WIP)
- coming soon...
coming soon...