quit event, join event now fires only once in a while for the same player

This commit is contained in:
smsteel
2019-02-08 18:29:45 +03:00
parent a58e01f7e5
commit 387ee4cb43
5 changed files with 59 additions and 46 deletions

12
main.js
View File

@ -1,18 +1,6 @@
import express from 'express'
import { sendEvent } from './bot'
(function() {
var childProcess = require("child_process");
var oldSpawn = childProcess.spawn;
function mySpawn() {
console.log('spawn called');
console.log(arguments);
var result = oldSpawn.apply(this, arguments);
return result;
}
childProcess.spawn = mySpawn;
})();
const web = express()
web.use(express.json())