1
0
Code Issues Pull Requests Projects Releases Wiki Activity GitHub Gitee

合并仓库前的准备

This commit is contained in:
2022-10-17 13:11:15 +08:00
parent 2ccb0e3c1f
commit 8dbc539ced
9 changed files with 256 additions and 256 deletions

19
netease_music/watch.js Normal file
View File

@@ -0,0 +1,19 @@
let keepWatching = true;
if (keepWatching) {
global.useMysqlPool = true;
global.connectionLimit = 15;
} else {
global.useMysqlPool = false;
}
// global.dbConfig = 'mysql_local';
const neteaseMusic = require('./src/index');
const sleepUtils = require('../utils/sleepUtils');
async function main() {
do {
await neteaseMusic.watch();
await sleepUtils.sleep(10 * 1000);
} while (keepWatching)
}
main();