Skip to content

Commit

Permalink
fix v1.2.11 don't actually do relist, now it will.
Browse files Browse the repository at this point in the history
  • Loading branch information
idinium96 committed Jul 31, 2020
1 parent bed1acd commit f9ed24b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/Commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ export = class Commands {
clearTimeout(this.executeTimeout);
this.lastExecutedTime = moment().valueOf();

this.bot.listings.checkAllWithDelay();
this.bot.listings.redoListingsWithDelay();
this.bot.sendMessage(steamID, `✅ Relisting executed.`);

this.executed = true;
Expand Down
6 changes: 6 additions & 0 deletions src/classes/Listings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,12 @@ export = class Listings {
});
}

redoListingsWithDelay(): Promise<void> {
return this.removeAll().then(() => {
return this.checkAllWithDelay();
});
}

waitForListings(): Promise<void> {
return new Promise((resolve, reject) => {
let checks = 0;
Expand Down

0 comments on commit f9ed24b

Please sign in to comment.