From bdfd0e4779bd4c90b1dab82c6abf18136c0bc7f6 Mon Sep 17 00:00:00 2001 From: Anthony Date: Wed, 3 Aug 2022 04:05:22 +0100 Subject: [PATCH] feat(arabot): add update estimates on purge verify-as-vegan --- src/commands/verification/purgeVerifying.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/commands/verification/purgeVerifying.ts b/src/commands/verification/purgeVerifying.ts index ca6c5ec..4ffb6ce 100644 --- a/src/commands/verification/purgeVerifying.ts +++ b/src/commands/verification/purgeVerifying.ts @@ -114,6 +114,10 @@ export class purgeVerifyingCommand extends Command { await member.roles.add(IDs.roles.nonvegan.nonvegan); }, apiTimeout * (i - otherRoles)); } + + // Change reply to include how many have been skipped + await interaction.editReply(`Processing ${verVeganLength - otherRoles} users...\nEstimated time to completion: ${calcETA(apiTimeout, 0, (verVeganLength - otherRoles))}`); + /* Disabled due to invalid webhook token - most likely expired // Set the timeout for the completion setTimeout(