update
This commit is contained in:
@@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user