mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 01:04:13 +02:00
feat(arabot): add update estimates on purge verify-as-vegan
This commit is contained in:
parent
320eeca2ec
commit
bdfd0e4779
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user