Attempt at touching stats, it failed

This commit is contained in:
D3vision 2023-12-08 00:08:46 +01:00
parent 2703460b84
commit cabcfa69cf

View File

@ -65,7 +65,10 @@ class StatsCommand extends SlashCommand
}; };
const shardResults = await shard.broadcastEval(evalFunc).catch((error) => this.client.logger.error(error)); const shardResults = await shard.broadcastEval(evalFunc).catch((error) => this.client.logger.error(error));
// const shardResults: null | [] = null;
console.log('shart results');
const managerResult = await this.client.managerEval(mEvalFunc).catch((error) => this.client.logger.error(error)); const managerResult = await this.client.managerEval(mEvalFunc).catch((error) => this.client.logger.error(error));
console.log('manager result');
if (!shardResults || !managerResult) if (!shardResults || !managerResult)
throw new Error('Missing results for either shard or manager'); throw new Error('Missing results for either shard or manager');