/linebot-gcf

A serverless LINE Bot sample working on Google Cloud Functions(GCF).

Primary LanguageJavaScript

linebot-gcf

A serverless LINE Bot sample working on Google Cloud Functions(GCF).

Introduction(Japanese): http://alpacat.hatenablog.com/entry/linebot-gcf

Preparation

Preparation before deploy.

Deploy

Put config/default.json as follows:

{
  "line": {
    "channelAccessToken": "xxxx",
    "channelSecret": "xxxx"
  },
  "user": {
    "husband": {
      "lineUserId": "xxxx"
    },
    "wife": {
      "lineUserId": "xxxx"
    }
  },
  "todoist": {
    "apiToken": "xxxx",
    "projectId": {
      "shopping": xxxx
    }
  }
}

Deploy to GCF.

$ gcloud beta functions deploy webhook --trigger-http --source .