Skip to content

Commit

Permalink
Merge pull request #36 from line/examples
Browse files Browse the repository at this point in the history
Add kitchensink example
  • Loading branch information
Hyunje Jun authored Nov 14, 2017
2 parents 4960290 + 843423b commit c107955
Show file tree
Hide file tree
Showing 19 changed files with 1,290 additions and 147 deletions.
187 changes: 166 additions & 21 deletions examples/echo-bot/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/echo-bot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "An example LINE bot just to echo messages",
"main": "index.js",
"dependencies": {
"@line/bot-sdk": "^2.0.0",
"@line/bot-sdk": "^5.0.0",
"express": "^4.15.2"
}
}
1 change: 1 addition & 0 deletions examples/kitchensink/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/downloaded/*
29 changes: 29 additions & 0 deletions examples/kitchensink/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Kitchen Sink Bot

A kitchen-sink LINE bot example

## How to use

### Install deps

``` shell
npm install
```

Also, FFmpeg and ImageMagick should be installed to test image and video
echoing.

### Configuration

``` shell
export CHANNEL_SECRET=YOUR_CHANNEL_SECRET
export CHANNEL_ACCESS_TOKEN=YOUR_CHANNEL_ACCESS_TOKEN
export BASE_URL=https://your.base.url # for static file serving
export PORT=1234
```

## Run

``` shell
node .
```
Loading

0 comments on commit c107955

Please sign in to comment.