Skip to content

Commit 201b053

Browse files
author
Hyunje Jun
authored
Fix kitchensink bugs (#108)
* [kitchensink] Fix an issus that replyToken is undefined * [kitchensink] Include downloaded directory in repo properly
1 parent 6c02649 commit 201b053

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

examples/kitchensink/.gitignore

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

examples/kitchensink/downloaded/.gitkeep

Whitespace-only changes.

examples/kitchensink/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const replyText = (token, texts) => {
6060

6161
// callback function to handle a single event
6262
function handleEvent(event) {
63-
if (event.replyToken.match(/^(.)\1*$/)) {
63+
if (event.replyToken && event.replyToken.match(/^(.)\1*$/)) {
6464
return console.log("Test hook recieved: " + JSON.stringify(event.message));
6565
}
6666

0 commit comments

Comments
 (0)