Showing
1 changed file
with
4 additions
and
4 deletions
... | @@ -29,12 +29,8 @@ var uts2time = new Date() | ... | @@ -29,12 +29,8 @@ var uts2time = new Date() |
29 | 29 | ||
30 | var PushTimeId; | 30 | var PushTimeId; |
31 | console.log(TimeNow) | 31 | console.log(TimeNow) |
32 | -var explain = 0; | ||
33 | 32 | ||
34 | app.use(bodyParser.json()); | 33 | app.use(bodyParser.json()); |
35 | -if(explain <1){ | ||
36 | - explain_message(); | ||
37 | -} | ||
38 | app.post('/hook', function (req, res) { | 34 | app.post('/hook', function (req, res) { |
39 | 35 | ||
40 | var eventObj = req.body.events[0]; | 36 | var eventObj = req.body.events[0]; |
... | @@ -58,6 +54,10 @@ app.post('/hook', function (req, res) { | ... | @@ -58,6 +54,10 @@ app.post('/hook', function (req, res) { |
58 | PushTimeId = SetWhaleAlert() | 54 | PushTimeId = SetWhaleAlert() |
59 | USER_ID = source.userId; | 55 | USER_ID = source.userId; |
60 | } | 56 | } |
57 | + else if(message.text == '도움말'){ | ||
58 | + explain_message(); | ||
59 | + USER_ID = source.userId; | ||
60 | + } | ||
61 | else if(message.text == '고래알람해제'){ | 61 | else if(message.text == '고래알람해제'){ |
62 | clearTimeout(PushTimeId) | 62 | clearTimeout(PushTimeId) |
63 | } | 63 | } | ... | ... |
-
Please register or login to post a comment