Toggle navigation
Toggle navigation
This project
Loading...
Sign in
신승미
/
weatherClothing
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
Seungmi
2020-12-10 22:15:00 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
da2fe7fe60f90f671ff6d7e99115ba45b925f9d7
da2fe7fe
1 parent
4b14e191
부분 수정
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
app.js
app.js
View file @
da2fe7f
...
...
@@ -11,8 +11,8 @@ const bodyParser = require('body-parser');
var
app
=
express
();
const
{
info
}
=
require
(
'console'
);
var
{
PythonShell
}
=
require
(
'python-shell'
);
let
pyshell
=
new
PythonShell
(
'weather_chat.py'
,
{
mode
:
'text'
}
);
var
{
PythonShell
}
=
require
(
'python-shell'
);
var
pyshell
=
new
PythonShell
(
'weather_chat.py'
);
app
.
use
(
bodyParser
.
json
());
...
...
@@ -87,11 +87,10 @@ function chatUse(replyToken){
}
function
chatWeather
(
replyToken
){
var
PM
=
" "
;
pyshell
.
send
(
'request'
)
pyshell
.
on
(
'message'
,
function
(
data
){
PM
=
data
;
pyshell
.
on
(
'message'
,
function
(
data
)
{
console
.
log
(
data
);
});
request
.
post
(
...
...
Please
register
or
login
to post a comment