Toggle navigation
Toggle navigation
This project
Loading...
Sign in
조아혜
/
cfr-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
조아혜
2020-12-07 09:36:10 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7e79a591b7175da674e4a28063e14189c69ff8ae
7e79a591
1 parent
1a87c099
update package files
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
24 deletions
chatbot.js
package-lock.json
package.json
chatbot.js
View file @
7e79a59
...
...
@@ -19,8 +19,7 @@ app.use(bodyParser.json());
var
usingMessage
=
''
var
content_id
=
''
var
imgDownloaded
=
false
;
var
downloadedImg
=
''
//search
var
search_client_id
=
'your search client id'
;
//naver search local api client id를 입력하세요
...
...
@@ -88,8 +87,6 @@ app.post('/hook', function (req, res) {
content_id
=
eventObj
.
message
.
id
;
const
downloadPath
=
path
.
join
(
__dirname
,
'sample.jpg'
);
downloadContent
(
content_id
,
downloadPath
);
//downloadedImg = content_id;
//imgDownloaded = true;
Checking
(
eventObj
.
replyToken
);
res
.
sendStatus
(
200
);
}
else
if
(
text
==
'ㅇ'
)
{
...
...
@@ -139,24 +136,6 @@ const quickReplyCfrYes = {
const
quickReplyCfrNo
=
{
items
:
[
/*
{
"type": "action",
"action": {
"type": "message",
"label": "weather",
"text": "날씨"
}
},
{
"type": "action",
"action": {
"type": "message",
"label": "menu",
"text": "메뉴"
}
},
*/
{
"type"
:
"action"
,
"action"
:
{
...
...
package-lock.json
0 → 100644
View file @
7e79a59
This diff is collapsed. Click to expand it.
package.json
View file @
7e79a59
{
"name"
:
"cfr-chatbot"
,
"version"
:
"1.0.0"
,
"description"
:
""
,
"description"
:
"
chatbot to recommend good restaurants using CFR API
"
,
"main"
:
"chatbot.js"
,
"scripts"
:
{
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
},
"author"
:
""
,
"author"
:
"
whdkgp97@khu.ac.kr
"
,
"license"
:
"ISC"
,
"dependencies"
:
{
"@line/bot-sdk"
:
"^7.1.0"
,
...
...
@@ -17,6 +17,7 @@
"fs"
:
"0.0.1-security"
,
"html-webpack-plugin"
:
"^4.5.0"
,
"line-bot-sdk-nodejs"
:
"^1.0.0"
,
"proj4"
:
"^2.6.3"
,
"request"
:
"^2.88.2"
,
"webpack"
:
"^5.9.0"
}
...
...
Please
register
or
login
to post a comment