Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.
/ linebot-gcf Public archive

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

Notifications You must be signed in to change notification settings

otoyo/linebot-gcf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 .

Releases

No releases published

Packages

No packages published