Showing
1 changed file
with
0 additions
and
4 deletions
| ... | @@ -39,9 +39,6 @@ const lex = greenlock .create({ | ... | @@ -39,9 +39,6 @@ const lex = greenlock .create({ |
| 39 | });*/ | 39 | });*/ |
| 40 | 40 | ||
| 41 | //papago api | 41 | //papago api |
| 42 | -app.get('/photo/1.png',(req,res)=>{ | ||
| 43 | - res.send(fs.readFileSync('./photo/1.png')); | ||
| 44 | -}) | ||
| 45 | 42 | ||
| 46 | //번역 api_url | 43 | //번역 api_url |
| 47 | var translate_api_url = 'https://openapi.naver.com/v1/papago/n2mt'; | 44 | var translate_api_url = 'https://openapi.naver.com/v1/papago/n2mt'; |
| ... | @@ -89,7 +86,6 @@ async function handleEvent(event) { | ... | @@ -89,7 +86,6 @@ async function handleEvent(event) { |
| 89 | client.getMessageContent(event.message.id) | 86 | client.getMessageContent(event.message.id) |
| 90 | .then((stream) => { | 87 | .then((stream) => { |
| 91 | stream.on('data', (chunk) => { | 88 | stream.on('data', (chunk) => { |
| 92 | - fs.writeFileSync('/photo/1.png',chunk); | ||
| 93 | file=chunk; | 89 | file=chunk; |
| 94 | }); | 90 | }); |
| 95 | }); | 91 | }); | ... | ... |
-
Please register or login to post a comment