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-29 00:50:07 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8774aba7036b730dab6c7bedd8368b3c41f2ff58
8774aba7
1 parent
f88c2bb8
EDIT: checkMamul also send keyword info
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
server/chatbot/check/checkMamul.js
server/chatbot/check/checkMamul.js
View file @
8774aba
...
...
@@ -24,11 +24,20 @@ const multiCheckMamul = (client) => {
const
checkMamul
=
(
client
,
userId
)
=>
{
db
.
getKeywordsByUserId
(
userId
).
then
((
keywords
)
=>
{
for
(
let
i
=
0
,
pending
=
Promise
.
resolve
();
i
<
keywords
.
length
;
i
++
)
{
for
(
let
i
=
0
,
pending
=
Promise
.
resolve
();
i
<
keywords
.
length
;
i
++
)
{
pending
=
marketMultiSearch
(
keywords
[
i
]).
then
((
res
)
=>
{
client
.
pushMessage
(
userId
,
setCarouselMessage
(
res
));
client
.
multicast
(
[
userId
],
[
{
type
:
"text"
,
text
:
`키워드:
${
keywords
[
i
]}
`
,
},
setCarouselMessage
(
res
),
]
);
});
}
;
}
});
};
...
...
Please
register
or
login
to post a comment