mirror of
https://github.com/crystelf/crystelf-core.git
synced 2025-07-04 14:49:19 +00:00
fix:逻辑问题
This commit is contained in:
parent
f0fd57b6ac
commit
78748fd04c
@ -137,8 +137,11 @@ class BotService {
|
||||
const clientId = path.basename(fileName, '.json');
|
||||
const botList = await redisService.fetch('crystelfBots', fileName);
|
||||
if (!Array.isArray(botList)) continue;
|
||||
if (!botList[0]) continue;
|
||||
for (const bot of botList) {
|
||||
if (!bot.uin || !bot.groups) continue;
|
||||
if (typeof bot.uin != 'number' || typeof bot.groups != 'number') continue;
|
||||
logger.debug(JSON.stringify(bot));
|
||||
for (const group of bot.groups) {
|
||||
if (!groupMap.has(group.group_id)) {
|
||||
groupMap.set(group.group_id, []);
|
||||
|
Loading…
x
Reference in New Issue
Block a user