Toggle navigation
Toggle navigation
This project
Loading...
Sign in
윤준석
/
mamuri-bot
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
유명현
2022-05-28 23:35:14 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3720f2b36c8c652f76d60b791f5bf5cbdb2df47b
3720f2b3
1 parent
b2f24a78
EDIT: replyMessage changed to PushMessage
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
server/chatbot/check/checkKeywords.js
server/chatbot/check/checkKeywords.js
View file @
3720f2b
const
setKeywordsFlexMessage
=
require
(
"../message/setKeywordsFlexMessage"
)
const
setKeywordsFlexMessage
=
require
(
"../message/setKeywordsFlexMessage"
)
;
const
db
=
require
(
"../../apis/database"
);
const
checkKeywords
=
(
client
,
event
)
=>
{
db
.
getKeywordsByUserId
(
event
.
source
.
userId
).
then
((
keywords
)
=>
{
flexMessage
=
setKeywordsFlexMessage
(
keywords
);
client
.
replyMessage
(
event
.
replyToken
,
flexMessage
)
})
db
.
getKeywordsByUserId
(
event
.
source
.
userId
).
then
((
keywords
)
=>
{
flexMessage
=
setKeywordsFlexMessage
(
keywords
);
client
.
pushMessage
(
event
.
source
.
userId
,
flexMessage
);
});
};
module
.
exports
=
{
checkKeywords
};
\ No newline at end of file
module
.
exports
=
{
checkKeywords
};
...
...
Please
register
or
login
to post a comment