Showing
1 changed file
with
1 additions
and
14 deletions
... | @@ -41,19 +41,7 @@ app.post('/hook', function (req, res) { | ... | @@ -41,19 +41,7 @@ app.post('/hook', function (req, res) { |
41 | } | 41 | } |
42 | else | 42 | else |
43 | { | 43 | { |
44 | - if(eventObj.message.text == '도움말') | 44 | + if(eventObj.message.text == '도움말' || '주가' || '비중 추천' || '백테스트') |
45 | - { | ||
46 | - printhelp(eventObj.replyToken, eventObj.message.text) | ||
47 | - } | ||
48 | - else if(eventObj.message.text == '주가') | ||
49 | - { | ||
50 | - printhelp(eventObj.replyToken, eventObj.message.text) | ||
51 | - } | ||
52 | - else if(eventObj.message.text == '비중 추천') | ||
53 | - { | ||
54 | - printhelp(eventObj.replyToken, eventObj.message.text) | ||
55 | - } | ||
56 | - else if(eventObj.message.text == '백테스트') | ||
57 | { | 45 | { |
58 | printhelp(eventObj.replyToken, eventObj.message.text) | 46 | printhelp(eventObj.replyToken, eventObj.message.text) |
59 | } | 47 | } |
... | @@ -68,7 +56,6 @@ app.post('/hook', function (req, res) { | ... | @@ -68,7 +56,6 @@ app.post('/hook', function (req, res) { |
68 | 56 | ||
69 | } | 57 | } |
70 | 58 | ||
71 | - | ||
72 | res.sendStatus(200); | 59 | res.sendStatus(200); |
73 | 60 | ||
74 | }); | 61 | }); | ... | ... |
-
Please register or login to post a comment