update
This commit is contained in:
12
watch.js
12
watch.js
@@ -7,6 +7,12 @@ if (keepWatching) {
|
||||
}
|
||||
|
||||
const neteaseMusic = require('./netease_music/index');
|
||||
neteaseMusic.watch();
|
||||
if (keepWatching)
|
||||
setInterval(neteaseMusic.watch, 15 * 1000);
|
||||
const sleepUtils = require('./utils/sleepUtils');
|
||||
|
||||
async function main() {
|
||||
do {
|
||||
await neteaseMusic.watch();
|
||||
await sleepUtils.sleep(2000);
|
||||
} while (keepWatching)
|
||||
}
|
||||
main();
|
Reference in New Issue
Block a user