/kotlin-js-cloud-function-linebot

LINE Bot written in Kotlin/JS and running with Cloud Functions for Firebase.

Primary LanguageKotlinApache License 2.0Apache-2.0

kotlin-js-cloud-function-linebot

LINE Bot written in Kotlin/JS and running with Cloud Functions for Firebase.

image qr
image image

Parrot return. Text only.

Environment

  • Kotlin v1.3.72
  • Gradle v6.3
  • dukat v0.0.28

Build

$ ./gradlew clean compileKotlinJs

Debug

Running local server.

$ cd build/js/packages/kotlin-js-cloud-function-linebot/ && npx @google-cloud/functions-framework --target=message ; cd -

Deploy

You'll need a Channel Access Token to try it.

$ ./gradlew clean compileKotlinJs
$ ./gradlew packaging
$ cd functions && gcloud functions deploy message --region asia-northeast1 --trigger-http --runtime nodejs8 --update-env-vars CHANNEL_ACCESS_TOKEN="YOUR TOKEN" && cd -

Copyright (c) 2020 sakebook Licensed under the Apache License.