amowu / slack-bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slack Bot

My Slack Bot collection with serverless infrastructure.

Requirement

  • Node.js v4.x.x
  • Apex - a serverless infrastructure built on AWS Lambda.
  • Terraform (optional) - a common configuration to launch infrastructure.
  • aws-cli (optional)

Installation

$ 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

Usage

Earthquake Bot

coming soon...

slack_earthquake

Google Bot

  1. get Google Graph Knowledge API (WIP)
  2. add a Slack Slash Commands (WIP)
  3. function.json.example -> function.json (WIP)
  4. coming soon...

slack_google

Jobs Bot

  1. put item to Jobs table (WIP)
  2. setup scheduled event source for Lambda function (WIP)
  3. duplicate function.json.example and rename to function.json, copy and paste your Slack channel webhook URL to function.json (WIP)
  4. coming soon...

slack_jobs

LINE / Facebook Messenger Chat Bot

  1. 申請相關 API KEY (LINE, Facebook Messenger, docomo, Google...) (WIP)
  2. function.json.example -> function.json (WIP)
  3. setup AWS infrastructure... (WIP)
  4. add Lambda IP range to LINE whitelist (WIP)
  5. coming soon...

thumb_img_7390_1024

Movie Bot

coming soon...

About


Languages

Language:JavaScript 77.1%Language:HCL 22.9%