„node/statusbot.js“ ändern
This commit is contained in:
parent
48925fdd99
commit
ef5da8ee5d
|
@ -97,11 +97,9 @@ ctdoapi.on('done', function (answer) {
|
|||
});
|
||||
|
||||
ippoll.on('doneState', function (state) {
|
||||
//spaceanswer.state.open = state;
|
||||
spaceanswer.state.open = false;
|
||||
spaceanswer.state.open = state;
|
||||
spaceanswer.state.lastchange = Math.floor(new Date().getTime() / 1000);
|
||||
//simpleanswer.state = state;
|
||||
simpleanswer.state = false;
|
||||
simpleanswer.state = state;
|
||||
simpleanswer.lastchange = spaceanswer.state.lastchange;
|
||||
simpleanswer.lastchange = new Date().getTime();
|
||||
io.sockets.emit('sdata', {data: simpleanswer});
|
||||
|
|
Loading…
Reference in New Issue