Showing
4 changed files
with
21 additions
and
15 deletions
... | @@ -100,31 +100,36 @@ A list of commonly used resources that I find helpful are listed in the acknowle | ... | @@ -100,31 +100,36 @@ A list of commonly used resources that I find helpful are listed in the acknowle |
100 | ### Installation | 100 | ### Installation |
101 | 101 | ||
102 | 1. Clone the repo | 102 | 1. Clone the repo |
103 | -```sh | 103 | +``` |
104 | git clone http://khuhub.khu.ac.kr/2017104037/OSS_LINEBOT_kikitank1.git | 104 | git clone http://khuhub.khu.ac.kr/2017104037/OSS_LINEBOT_kikitank1.git |
105 | ``` | 105 | ``` |
106 | 2. Install NPM | 106 | 2. Install NPM |
107 | -```sh | 107 | +``` |
108 | npm install request | 108 | npm install request |
109 | npm install express | 109 | npm install express |
110 | npm install async | 110 | npm install async |
111 | ``` | 111 | ``` |
112 | 3. Enter your info | 112 | 3. Enter your info |
113 | -```sh | 113 | +``` |
114 | -const domain = "Your Domain"; | 114 | +const TOKEN = 'Your Token' |
115 | -const sslport = "Your sslport"; | 115 | +const PAPAGO_ID = 'Your Papago_ID' |
116 | +const PAPAGO_SECRET = 'Your Papago_Secret' | ||
117 | +const weather_key = 'Your Key'; | ||
118 | +const domain = "Your Domain" | ||
119 | +const sslport = Your port; | ||
116 | ``` | 120 | ``` |
117 | 121 | ||
118 | <!-- USAGE EXAMPLES --> | 122 | <!-- USAGE EXAMPLES --> |
119 | ## Usage | 123 | ## Usage |
120 | -[![Product Name Screen Shot][product-screenshot2]]()<br/> | 124 | +[![Product Name Screen Shot][product-screenshot2]]() |
125 | +[![Product Name Screen Shot][product-screenshot3]]()<br/> | ||
121 | 1. 번역기능<br/> | 126 | 1. 번역기능<br/> |
122 | -1.1. 번역하고 싶은 언어를 채팅합니다. ex) '한국어', '일본어', '프랑스어', '중국어'<br/> | 127 | +1.1. 번역하고 싶은 언어를 채팅합니다. ex) '한국어', '일본어', '프랑스어', '중국어', 韓国語, KoreanLanguage<br/> |
123 | 1.2. 채팅을 합니다.<br/> | 128 | 1.2. 채팅을 합니다.<br/> |
124 | <br/> | 129 | <br/> |
125 | 2. 날씨기능<br/> | 130 | 2. 날씨기능<br/> |
126 | -2.1. 알고싶은 지역을 적습니다. ex) '서울', '수원', '밀양'<br/> | 131 | +2.1. 알고싶은 지역을 적습니다. ex) '서울', '수원', '밀양', 'Seoul', '水源'<br/> |
127 | -2.2. '날씨'를 칩니다.<br/> | 132 | +2.2. '날씨','Weather', '天気'를 칩니다.<br/> |
128 | 133 | ||
129 | 더 많은 정보를 원하신다면, [파파고Documentation](https://developers.naver.com/docs/papago/), [라인Documentation](https://developers.line.biz/en/docs/), [기상청openAPI](https://www.data.go.kr/tcs/dss/selectApiDataDetailView.do?publicDataPk=15057682)를 참고해주세요. | 134 | 더 많은 정보를 원하신다면, [파파고Documentation](https://developers.naver.com/docs/papago/), [라인Documentation](https://developers.line.biz/en/docs/), [기상청openAPI](https://www.data.go.kr/tcs/dss/selectApiDataDetailView.do?publicDataPk=15057682)를 참고해주세요. |
130 | 135 | ||
... | @@ -199,3 +204,4 @@ Project Link: [http://khuhub.khu.ac.kr/2017104037/OSS_LINEBOT_kikitank1](http:// | ... | @@ -199,3 +204,4 @@ Project Link: [http://khuhub.khu.ac.kr/2017104037/OSS_LINEBOT_kikitank1](http:// |
199 | [linkedin-url]: https://linkedin.com/in/othneildrew | 204 | [linkedin-url]: https://linkedin.com/in/othneildrew |
200 | [product-screenshot]: images/screenshot.png | 205 | [product-screenshot]: images/screenshot.png |
201 | [product-screenshot2]: images/screenshot2.png | 206 | [product-screenshot2]: images/screenshot2.png |
207 | +[product-screenshot3]: images/screenshot3.png | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
1 | var express = require('express'); | 1 | var express = require('express'); |
2 | const request = require('request'); | 2 | const request = require('request'); |
3 | const TARGET_URL = 'https://api.line.me/v2/bot/message/reply' | 3 | const TARGET_URL = 'https://api.line.me/v2/bot/message/reply' |
4 | -const TOKEN = '9odQvyPPtDEzqHdfdk8Q8ua6dgrffTQuJnpkYuM6Q0VTREhmU+NJ0BAVCIfo2gEDtD37TYC0TZ7MrijHZeA592eUwzb+quftcHXBa0hye5iZHK0G4HiZCnB9C2bLgQvgQVJ47DwGeBQlwaNVJvze1AdB04t89/1O/w1cDnyilFU=' | 4 | +const TOKEN = 'Your Token' |
5 | const PAPAGO_URL = 'https://openapi.naver.com/v1/papago/n2mt' | 5 | const PAPAGO_URL = 'https://openapi.naver.com/v1/papago/n2mt' |
6 | const PAPAGO_D_URL = 'https://openapi.naver.com/v1/papago/detectLangs' | 6 | const PAPAGO_D_URL = 'https://openapi.naver.com/v1/papago/detectLangs' |
7 | -const PAPAGO_ID = 'tA41WEd_nbzy0nZcUQks' | 7 | +const PAPAGO_ID = 'Your Papago_ID' |
8 | -const PAPAGO_SECRET = '6DHwov9gg2' | 8 | +const PAPAGO_SECRET = 'Your Papago_Secret' |
9 | const WEATHER_TARGET_URL = 'http://apis.data.go.kr/1360000/VilageFcstInfoService/getVilageFcst'; | 9 | const WEATHER_TARGET_URL = 'http://apis.data.go.kr/1360000/VilageFcstInfoService/getVilageFcst'; |
10 | -const weather_key = 'CuIdcpULvcissE3Jk7AyAXok4bR4j6xyNkhfmWxOI9%2BxCs%2FkI%2F4v4j4rz3DDsQZVeuJTrWQhzQ3CV4JkeykMSw%3D%3D'; | 10 | +const weather_key = 'Your Key'; |
11 | 11 | ||
12 | const fs = require('fs'); | 12 | const fs = require('fs'); |
13 | const path = require('path'); | 13 | const path = require('path'); |
14 | const HTTPS = require('https'); | 14 | const HTTPS = require('https'); |
15 | -const domain = "www.theia17.tk" | 15 | +const domain = "Your Domain" |
16 | -const sslport = 23023; | 16 | +const sslport = Your port; |
17 | 17 | ||
18 | const bodyParser = require('body-parser'); | 18 | const bodyParser = require('body-parser'); |
19 | var app = express(); | 19 | var app = express(); | ... | ... |
images/screenshot2.png
0 → 100644
18.9 KB
images/screenshot3.png
0 → 100644
67.8 KB
-
Please register or login to post a comment