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-30 20:54:58 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
af1480300202320cfe9d2404a4ef46b4065a7296
af148030
1 parent
01ae79f9
EDIT: Delete text message (merged to flex)
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
17 deletions
server/chatbot/check/checkMamul.js
server/chatbot/check/checkMamul.js
View file @
af14803
...
...
@@ -15,13 +15,7 @@ const multiCheckMamul = (client) => {
for
(
let
i
=
0
,
pending
=
Promise
.
resolve
();
i
<
keywords
.
length
;
i
++
)
{
pending
=
db
.
getUsersByKeyword
(
keywords
[
i
]).
then
((
userIds
)
=>
{
marketMultiSearch
(
keywords
[
i
]).
then
((
res
)
=>
{
client
.
multicast
(
userIds
,
[
{
type
:
"text"
,
text
:
`유저님의
${
keywords
[
i
]}
매물 알림이 도착했어요!`
,
},
setCarouselMessage
(
res
,
keywords
[
i
]),
]);
client
.
multicast
(
userIds
,
[
setCarouselMessage
(
res
,
keywords
[
i
])]);
});
});
}
...
...
@@ -32,16 +26,7 @@ const checkMamul = (client, userId) => {
db
.
getKeywordsByUserId
(
userId
).
then
((
keywords
)
=>
{
for
(
let
i
=
0
,
pending
=
Promise
.
resolve
();
i
<
keywords
.
length
;
i
++
)
{
pending
=
marketMultiSearch
(
keywords
[
i
]).
then
((
res
)
=>
{
client
.
multicast
(
[
userId
],
[
{
type
:
"text"
,
text
:
`유저님의
${
keywords
[
i
]}
매물 알림이 도착했어요!`
,
},
setCarouselMessage
(
res
,
keywords
[
i
]),
]
);
client
.
multicast
([
userId
],
[
setCarouselMessage
(
res
,
keywords
[
i
])]);
});
}
});
...
...
Please
register
or
login
to post a comment