✨ feat(gvg): 添加推送

This commit is contained in:
luying
2023-02-17 11:00:25 +08:00
parent 605ee869a9
commit 2eea5d86d9
15 changed files with 319 additions and 103 deletions
+3 -2
View File
@@ -207,9 +207,9 @@ async function treatStartLogic(app: _pinus.Application) {
setGVGServerGroup();
}
if(app.getServerType() == 'guild') {
setGVGConfig();
app.event.on('start_all', () => {
initTeamToMem();
setGVGConfig().then(initTeamToMem);
});
}
@@ -218,6 +218,7 @@ async function treatStartLogic(app: _pinus.Application) {
redisService.readDataBase();
redisService.clearComBtlQueue();
redisService.clearChannelServers();
redisService.clearGVGHistoryAreas();
updateTeamStatus(COM_TEAM_STATUS.DEFAULT, COM_TEAM_STATUS.LOOSE);
updateTeamStatus(COM_TEAM_STATUS.FIGHTING, COM_TEAM_STATUS.LOOSE);
}