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-25 01:19:37 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8194a1cc7462db31a8bbc99729f2711d37eb7ef7
8194a1cc
1 parent
bdeb3703
FIX: resolve <const> config + Refactor unessential code (console.log)
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
server/app.js
server/chatbot/index.js
server/app.js
View file @
8194a1c
...
...
@@ -2,7 +2,7 @@ const express = require("express");
const
line
=
require
(
"@line/bot-sdk"
);
const
fs
=
require
(
"fs"
);
const
{
handleEvent
}
=
require
(
"./chatbot/index"
);
const
{
config
}
=
require
(
"./chatbot/index"
);
//
const { config } = require("./chatbot/index");
const
{
sequelize
}
=
require
(
"./models"
);
const
database
=
require
(
"./apis/database"
);
...
...
server/chatbot/index.js
View file @
8194a1c
...
...
@@ -53,7 +53,8 @@ function handleEvent(event) {
"RTX 3080"
,
"1000000"
,
"https://dnvefa72aowie.cloudfront.net/origin/article/202205/94cdd237258671d5806a70f64ab2b3c7dcd790da0384b394ef5809fe10c08ced.webp?q=95&s=1440x1440&t=inside"
,
"https://www.daangn.com/articles/403755360"
"https://www.daangn.com/articles/403755360"
,
"test설명"
),
})
);
...
...
@@ -66,7 +67,6 @@ function handleEvent(event) {
if
(
found
==
-
1
)
{
return
Promise
.
resolve
(
marketMultiSearch
(
event
.
message
.
text
).
then
((
res
)
=>
{
console
.
log
(
setCarouselMessage
(
res
));
client
.
pushMessage
(
event
.
source
.
userId
,
setCarouselMessage
(
res
));
})
);
...
...
Please
register
or
login
to post a comment