1
0
Code Issues Pull Requests Projects Releases Wiki Activity GitHub Gitee
tools/watch.js
2022-10-02 23:48:07 +08:00

12 lines
307 B
JavaScript

let keepWatching = true;
if (keepWatching) {
global.useMysqlPool = true;
global.connectionLimit = 1;
} else {
global.useMysqlPool = false;
}
const neteaseMusic = require('./netease_music/index');
neteaseMusic.watch();
if (keepWatching)
setInterval(neteaseMusic.watch, 15 * 1000);