Toggle navigation
Toggle navigation
This project
Loading...
Sign in
은승우
/
LINEBOT
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
은승우
2019-12-05 16:28:42 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ca288d2f7f9c3724cf47b32f091fd43c6def92ef
ca288d2f
1 parent
131e268d
Update app.js
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
app.js
app.js
View file @
ca288d2
...
...
@@ -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
;
});
});
...
...
Please
register
or
login
to post a comment