tes pingo
parent
21a2d597dd
commit
94c9edf473
|
|
@ -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)}`)
|
||||
|
|
|
|||
Reference in New Issue