5 Commits

Author SHA1 Message Date
cbc3334994 1.0.19 2022-02-27 21:57:01 +01:00
d111e3709b fix(core): update 2022-02-27 21:57:00 +01:00
66a8610bb1 1.0.18 2022-02-27 21:43:15 +01:00
e4c41b82ef 1.0.17 2022-02-27 21:33:55 +01:00
47df20fd7e 1.0.16 2022-02-27 21:27:15 +01:00
3 changed files with 5 additions and 5 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@mojoio/bobcat",
"version": "1.0.15",
"version": "1.0.19",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@mojoio/bobcat",
"version": "1.0.15",
"version": "1.0.19",
"license": "MIT",
"dependencies": {
"@pushrocks/smartdelay": "^2.0.13",

View File

@ -1,6 +1,6 @@
{
"name": "@mojoio/bobcat",
"version": "1.0.15",
"version": "1.0.19",
"private": false,
"description": "a module to talk to bobcat miners",
"main": "dist_ts/index.js",

View File

@ -33,7 +33,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}`);
console.log(`added ${newBobcat.latestMinerDetails?.animal} at ${newBobcat.networkAddress}`);
}
/**
@ -44,7 +44,7 @@ export class BobcatManager {
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}`);
console.log(`now running maintenance on ${bobcat.latestMinerDetails?.animal} at ${bobcat.networkAddress}`);
await plugins.smartpromise.timeoutAndContinue(bobcat.runMaintenance());
}
};