rating系统(测试

This commit is contained in:
masnn committed 2020-06-07 15:38:38 +08:00
1 parent 508f5644c3
commit 4aa1c9fe1f
7 files changed
+131 -5

No files matched your search

+11
View File
@@ -8,6 +8,17 @@ process.stdin.on('data', async (input) => {
console.warn(e);
}
});
process.on('unhandledRejection', (e) => console.log(e));
global.onDestory = [];
async function terminate() {
for (const task of global.onDestory) {
// eslint-disable-next-line no-await-in-loop
await task();
}
process.exit(0);
}
process.on('SIGINT', terminate);
require('./loader').load().catch((e) => {
console.error(e);