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 02:31:17 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
666e9aff031a374a14feffcb8b0adef95ed25b9e
666e9aff
1 parent
e5454088
최종수정
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
10 deletions
app.js
app.js
View file @
666e9af
...
...
@@ -12,15 +12,7 @@ var app = express();
const
{
info
}
=
require
(
'console'
);
var
{
PythonShell
}
=
require
(
'python-shell'
);
var
pyshell
=
new
PythonShell
(
'weather_chat.py'
);
let
options
=
{
mode
:
'text'
,
pythonPath
:
''
,
pythonOptions
:
[
'-u'
],
scriptPath
:
''
,
args
:
[
'value1'
,
'value2'
,
'value3'
]
};
let
pyshell
=
new
PythonShell
(
'weather_chat.py'
,
{
mode
:
'text'
});
app
.
use
(
bodyParser
.
json
());
...
...
@@ -99,7 +91,6 @@ function chatWeather(replyToken){
pyshell
.
send
(
'request'
)
pyshell
.
on
(
'message'
,
function
(
data
){
console
.
log
(
data
);
PM
=
data
;
});
...
...
Please
register
or
login
to post a comment