This commit is contained in:
2022-02-25 21:45:11 +00:00
parent 5fb5979c91
commit 99fa906630
5 changed files with 36 additions and 9 deletions

View File

@@ -10,6 +10,7 @@ export class BobcatManager {
public async addBobcat(networkAddressArg: string) {
const newBobcat = await Bobcat.createFromNetworkAddress(networkAddressArg);
this.bobcats.push(newBobcat);
console.log(`added ${newBobcat.latestMinerDetails.animal} at ${newBobcat.networkAddress}`);
}
/**
@@ -17,7 +18,10 @@ export class BobcatManager {
*/
public async runMaintenance() {
console.log(`now running maintenance on ${this.bobcats.length} bobcats!`);
console.log(`cooling down for 10 seconds`);
await plugins.smartdelay.delayFor(10000);
for (const bobcat of this.bobcats) {
console.log(`now running maintenance on ${bobcat.latestMinerDetails.animal} at ${bobcat.networkAddress}`);
await bobcat.runMaintenance();
}
};