Toggle navigation
Toggle navigation
This project
Loading...
Sign in
오세헌
/
Ingredient-to-Dish-ChatBot
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-06-06 17:18:57 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f234efa7033f725d216ef3f9c27a02c355796a89
f234efa7
1 parent
8aadc42a
Update reply.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
I_to_D_chatbot/reply.js
I_to_D_chatbot/reply.js
View file @
f234efa
...
...
@@ -41,8 +41,6 @@ app.post('/hook', function (req, res) {
var
index
=
0
;
var
istrue
=
false
;
var
input_ingredients_list
=
message
.
text
.
split
(
" "
);
console
.
log
(
"A"
);
console
.
log
(
input_ingredients_list
);
for
(
var
i
=
0
;
i
<
results
.
length
;
i
++
)
{
var
ingredients_list
=
results
[
i
].
ingredients
.
split
(
", "
);
if
(
ingredients_list
.
filter
(
x
=>
input_ingredients_list
.
includes
(
x
)).
length
===
input_ingredients_list
.
length
)
{
...
...
Please
register
or
login
to post a comment