은승우

Update app.js

Showing 1 changed file with 0 additions and 4 deletions
......@@ -39,9 +39,6 @@ const lex = greenlock .create({
});*/
//papago api
app.get('/photo/1.png',(req,res)=>{
res.send(fs.readFileSync('./photo/1.png'));
})
//번역 api_url
var translate_api_url = 'https://openapi.naver.com/v1/papago/n2mt';
......@@ -89,7 +86,6 @@ async function handleEvent(event) {
client.getMessageContent(event.message.id)
.then((stream) => {
stream.on('data', (chunk) => {
fs.writeFileSync('/photo/1.png',chunk);
file=chunk;
});
});
......