Skip to content
Snippets Groups Projects
Commit 103979dd authored by syuilo's avatar syuilo
Browse files

✌️

parent a931bcbf
No related merge requests found
......@@ -73,8 +73,8 @@ class LineBot extends BotCore {
}]);
}
// postback
} else if (ev.message.type == 'postback') {
const data = ev.message.postback.data;
} else if (ev.type == 'postback') {
const data = ev.postback.data;
const cmd = data.split('|')[0];
const arg = data.split('|')[1];
switch (cmd) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment