From 1b12d7be7e32c95425337b579478e9c6e93d1822 Mon Sep 17 00:00:00 2001 From: Snazzah Date: Thu, 10 Jun 2021 21:22:36 -0500 Subject: [PATCH] Add buffer time --- src/commands/admin/fundall.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/commands/admin/fundall.js b/src/commands/admin/fundall.js index a0c29b6..007e585 100644 --- a/src/commands/admin/fundall.js +++ b/src/commands/admin/fundall.js @@ -28,6 +28,7 @@ module.exports = class FundAll extends Command { pairs.push({ discordID: member.id, lbryID: account.accountID }); } } + await Util.halt(5000); this.client.stopTyping(message.channel); } @@ -41,6 +42,7 @@ module.exports = class FundAll extends Command { errored = 0; for (const pair of pairs) { const response = await this.client.lbry.fundAccount({ to: pair.lbryID, amount: givenAmount }); + await Util.halt(2000); const transaction = await response.json(); if ('code' in transaction) { console.info('Failed to fund account', pair.lbryID, transaction.code, transaction.message); @@ -51,6 +53,7 @@ module.exports = class FundAll extends Command { resultLines.push(`${pair.discordID} - https://explorer.lbry.com/tx/${transaction.result.txid}`); funded++; } + await Util.halt(2000); } this.client.stopTyping(message.channel); return message.channel.createMessage(errored