Skip to content

Commit

Permalink
Merge branch 'master' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
idinium96 committed Jul 17, 2024
2 parents 061931e + b58b7b7 commit bd804bf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tf2autobot",
"version": "5.12.0",
"version": "5.12.2",
"description": "Fully automated TF2 trading bot advertising on www.backpack.tf using prices from www.prices.tf, Originally made by Nicklason.",
"main": "dist/app.js",
"scripts": {
Expand Down
12 changes: 10 additions & 2 deletions src/classes/Bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ export default class Bot {
}

startAutoRefreshListings(): void {
return;
// Automatically check for missing listings every 30 minutes
let pricelistLength = 0;

Expand Down Expand Up @@ -1401,15 +1402,22 @@ export default class Bot {
resolve(null);
};

const errorEvent = (err): void => {
const errorEvent = (err: CustomError): void => {
gotEvent();

this.client.removeListener('loggedOn', loggedOnEvent);
clearTimeout(timeout);

log.error('Failed to sign in to Steam: ', err);

reject(err);
if (err.eresult === EResult.AccessDenied) {
// Access denied during login
this.deleteRefreshToken().finally(() => {
reject(err);
});
} else {
reject(err);
}
};

const timeout = setTimeout(() => {
Expand Down

0 comments on commit bd804bf

Please sign in to comment.