Skip to content

Commit c107955

Browse files
author
Hyunje Jun
authored
Merge pull request #36 from line/examples
Add kitchensink example
2 parents 4960290 + 843423b commit c107955

File tree

19 files changed

+1290
-147
lines changed

19 files changed

+1290
-147
lines changed

examples/echo-bot/package-lock.json

Lines changed: 166 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/echo-bot/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "An example LINE bot just to echo messages",
55
"main": "index.js",
66
"dependencies": {
7-
"@line/bot-sdk": "^2.0.0",
7+
"@line/bot-sdk": "^5.0.0",
88
"express": "^4.15.2"
99
}
1010
}

examples/kitchensink/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/downloaded/*

examples/kitchensink/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Kitchen Sink Bot
2+
3+
A kitchen-sink LINE bot example
4+
5+
## How to use
6+
7+
### Install deps
8+
9+
``` shell
10+
npm install
11+
```
12+
13+
Also, FFmpeg and ImageMagick should be installed to test image and video
14+
echoing.
15+
16+
### Configuration
17+
18+
``` shell
19+
export CHANNEL_SECRET=YOUR_CHANNEL_SECRET
20+
export CHANNEL_ACCESS_TOKEN=YOUR_CHANNEL_ACCESS_TOKEN
21+
export BASE_URL=https://your.base.url # for static file serving
22+
export PORT=1234
23+
```
24+
25+
## Run
26+
27+
``` shell
28+
node .
29+
```

0 commit comments

Comments
 (0)