mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 14:04:38 +02:00
Fix?
This commit is contained in:
@@ -20,7 +20,7 @@ module.exports = class InfoCommand extends commando.Command {
|
|||||||
key: 'shardID',
|
key: 'shardID',
|
||||||
prompt: 'Which Shard would you like to get data for?',
|
prompt: 'Which Shard would you like to get data for?',
|
||||||
type: 'integer',
|
type: 'integer',
|
||||||
default: NaN
|
default: ''
|
||||||
}]
|
}]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -32,7 +32,7 @@ module.exports = class InfoCommand extends commando.Command {
|
|||||||
}
|
}
|
||||||
let shardID = args.shardID + 1 || this.client.shardID + 1;
|
let shardID = args.shardID + 1 || this.client.shardID + 1;
|
||||||
shardID = shardID - 1;
|
shardID = shardID - 1;
|
||||||
if (!shardID || shardID > this.client.options.shardCount + 1 || shardID < 0) {
|
if (shardID > this.client.options.shardCount + 1 || shardID < 0) {
|
||||||
return message.say(':x: Error! Invalid Shard!');
|
return message.say(':x: Error! Invalid Shard!');
|
||||||
}
|
}
|
||||||
const memory = await this.client.shard.broadcastEval('Math.round(process.memoryUsage().heapUsed / 1024 / 1024)');
|
const memory = await this.client.shard.broadcastEval('Math.round(process.memoryUsage().heapUsed / 1024 / 1024)');
|
||||||
|
|||||||
Reference in New Issue
Block a user