Toggle navigation
Toggle navigation
This project
Loading...
Sign in
정홍주
/
Coin-trade-assistant
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
정홍주
2021-06-09 13:25:24 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
40e639df13ceed9beb1060746eb1d93cb1dfecd0
40e639df
1 parent
415597f7
Add help message
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
app.js
app.js
View file @
40e639d
...
...
@@ -29,12 +29,8 @@ var uts2time = new Date()
var
PushTimeId
;
console
.
log
(
TimeNow
)
var
explain
=
0
;
app
.
use
(
bodyParser
.
json
());
if
(
explain
<
1
){
explain_message
();
}
app
.
post
(
'/hook'
,
function
(
req
,
res
)
{
var
eventObj
=
req
.
body
.
events
[
0
];
...
...
@@ -58,6 +54,10 @@ app.post('/hook', function (req, res) {
PushTimeId
=
SetWhaleAlert
()
USER_ID
=
source
.
userId
;
}
else
if
(
message
.
text
==
'도움말'
){
explain_message
();
USER_ID
=
source
.
userId
;
}
else
if
(
message
.
text
==
'고래알람해제'
){
clearTimeout
(
PushTimeId
)
}
...
...
Please
register
or
login
to post a comment