Обновить 'main.js'
This commit is contained in:
12
main.js
12
main.js
@ -1,6 +1,18 @@
|
||||
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())
|
||||
|
Reference in New Issue
Block a user