조아혜

update package files

...@@ -19,8 +19,7 @@ app.use(bodyParser.json()); ...@@ -19,8 +19,7 @@ app.use(bodyParser.json());
19 19
20 var usingMessage = '' 20 var usingMessage = ''
21 var content_id = '' 21 var content_id = ''
22 -var imgDownloaded = false; 22 +
23 -var downloadedImg = ''
24 23
25 //search 24 //search
26 var search_client_id = 'your search client id';//naver search local api client id를 입력하세요 25 var search_client_id = 'your search client id';//naver search local api client id를 입력하세요
...@@ -88,8 +87,6 @@ app.post('/hook', function (req, res) { ...@@ -88,8 +87,6 @@ app.post('/hook', function (req, res) {
88 content_id = eventObj.message.id; 87 content_id = eventObj.message.id;
89 const downloadPath = path.join(__dirname, 'sample.jpg'); 88 const downloadPath = path.join(__dirname, 'sample.jpg');
90 downloadContent(content_id, downloadPath); 89 downloadContent(content_id, downloadPath);
91 - //downloadedImg = content_id;
92 - //imgDownloaded = true;
93 Checking(eventObj.replyToken); 90 Checking(eventObj.replyToken);
94 res.sendStatus(200); 91 res.sendStatus(200);
95 } else if (text == 'ㅇ') { 92 } else if (text == 'ㅇ') {
...@@ -139,24 +136,6 @@ const quickReplyCfrYes = { ...@@ -139,24 +136,6 @@ const quickReplyCfrYes = {
139 136
140 const quickReplyCfrNo = { 137 const quickReplyCfrNo = {
141 items: [ 138 items: [
142 - /*
143 - {
144 - "type": "action",
145 - "action": {
146 - "type": "message",
147 - "label": "weather",
148 - "text": "날씨"
149 - }
150 - },
151 - {
152 - "type": "action",
153 - "action": {
154 - "type": "message",
155 - "label": "menu",
156 - "text": "메뉴"
157 - }
158 - },
159 - */
160 { 139 {
161 "type": "action", 140 "type": "action",
162 "action": { 141 "action": {
......
This diff is collapsed. Click to expand it.
1 { 1 {
2 "name": "cfr-chatbot", 2 "name": "cfr-chatbot",
3 "version": "1.0.0", 3 "version": "1.0.0",
4 - "description": "", 4 + "description": "chatbot to recommend good restaurants using CFR API",
5 "main": "chatbot.js", 5 "main": "chatbot.js",
6 "scripts": { 6 "scripts": {
7 "test": "echo \"Error: no test specified\" && exit 1" 7 "test": "echo \"Error: no test specified\" && exit 1"
8 }, 8 },
9 - "author": "", 9 + "author": "whdkgp97@khu.ac.kr",
10 "license": "ISC", 10 "license": "ISC",
11 "dependencies": { 11 "dependencies": {
12 "@line/bot-sdk": "^7.1.0", 12 "@line/bot-sdk": "^7.1.0",
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
17 "fs": "0.0.1-security", 17 "fs": "0.0.1-security",
18 "html-webpack-plugin": "^4.5.0", 18 "html-webpack-plugin": "^4.5.0",
19 "line-bot-sdk-nodejs": "^1.0.0", 19 "line-bot-sdk-nodejs": "^1.0.0",
20 + "proj4": "^2.6.3",
20 "request": "^2.88.2", 21 "request": "^2.88.2",
21 "webpack": "^5.9.0" 22 "webpack": "^5.9.0"
22 } 23 }
......