tes pingo

canary
Marcus 2021-04-01 21:18:02 -04:00
parent 21a2d597dd
commit 94c9edf473
1 changed files with 2 additions and 2 deletions

View File

@ -74,8 +74,8 @@ class Gateway {
client.on('ready', async () => {
while(pings.length < maxPings) {
interactive.info(`[${pings.length + 1}/${maxPings}] Testing connection...`);
pings.push(await client.ping());
// pings.push(10);
// pings.push(await client.ping());
pings.push(10);
await new Promise(res => setTimeout(res, 1000));
}
interactive.success(`Test complete. Average Ping: ${pings.reduce((a, v) => a += (v / maxPings), 0)}`)