From a1057fc419b36b144f461eda879d878025e16b94 Mon Sep 17 00:00:00 2001 From: idinium96 <47635037+idinium96@users.noreply.github.com> Date: Sun, 31 Mar 2024 09:05:45 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=F0=9F=94=84=EF=B8=8F=20bump=20@tf2autobot/?= =?UTF-8?q?steamcommunity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 16 ++++++++-------- package.json | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9cf9ab0cb..bbb63c6a5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@tf2autobot/bptf-login": "^2.3.6", "@tf2autobot/filter-axios-error": "^1.5.2", "@tf2autobot/jsonlint": "^1.0.0", - "@tf2autobot/steamcommunity": "^3.47.2", + "@tf2autobot/steamcommunity": "^3.48.0", "@tf2autobot/tf2": "^1.3.5", "@tf2autobot/tf2-currencies": "^2.0.1", "@tf2autobot/tf2-schema": "^4.3.1", @@ -2355,16 +2355,16 @@ } }, "node_modules/@tf2autobot/steamcommunity": { - "version": "3.47.2", - "resolved": "https://registry.npmjs.org/@tf2autobot/steamcommunity/-/steamcommunity-3.47.2.tgz", - "integrity": "sha512-Ta7Jw4XWzFLa4r9Eki3QJxOuuAbCBAvpSiOTNxdP7FrZBWJyS6UFS158U6e8uNe/E29WdAhyuVJRXea6UdVVHw==", + "version": "3.48.0", + "resolved": "https://registry.npmjs.org/@tf2autobot/steamcommunity/-/steamcommunity-3.48.0.tgz", + "integrity": "sha512-7qCYY8XqIS2A8UCtcND3WNS+PPolAdaA4qvCHJLt2JXLqkJKIIfxgWaeWr6RnwrBeLbTErdUAEwxKM/OcaK6NA==", "dependencies": { "@doctormckay/user-agents": "^1.0.0", "async": "^3.2.4", "cheerio": "^1.0.0-rc.12", "image-size": "^0.8.2", "request": "^2.88.2", - "steam-session": "^1.7.1", + "steam-session": "^1.7.2", "steam-totp": "^2.1.2", "steamid": "^2.0.0", "xml2js": "^0.6.2" @@ -10217,9 +10217,9 @@ } }, "node_modules/steam-session": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/steam-session/-/steam-session-1.7.1.tgz", - "integrity": "sha512-igdcAFlhFVHnpk2+Wy6iI91qDC0FoqmKmShoSVhKH+UvNWDzrHgOza1mq9jPRi/uBfVuVAe1dpUbtEShiprXzg==", + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/steam-session/-/steam-session-1.7.2.tgz", + "integrity": "sha512-BfOhwKqrzuiX9xeZ0X9IUhd3cwsZYzfGSkk51Oah7FM7JqDCDlcMrdv/1Q+YT7pBWpPCnnrncVkxiZ5mrRToCg==", "dependencies": { "@doctormckay/stdlib": "^2.9.0", "@doctormckay/user-agents": "^1.0.0", diff --git a/package.json b/package.json index 0a3a5121c..9374129b1 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "@tf2autobot/bptf-login": "^2.3.6", "@tf2autobot/filter-axios-error": "^1.5.2", "@tf2autobot/jsonlint": "^1.0.0", - "@tf2autobot/steamcommunity": "^3.47.2", + "@tf2autobot/steamcommunity": "^3.48.0", "@tf2autobot/tf2": "^1.3.5", "@tf2autobot/tf2-currencies": "^2.0.1", "@tf2autobot/tf2-schema": "^4.3.1", From 2febcf53ffbf691f9b0e82f36609466790fc226e Mon Sep 17 00:00:00 2001 From: idinium96 <47635037+idinium96@users.noreply.github.com> Date: Sun, 31 Mar 2024 09:14:57 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=F0=9F=94=A8=20set=20minimumPollInterval=20?= =?UTF-8?q?to=2010=20seconds=20instead=20of=201=20s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/classes/Bot.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/classes/Bot.ts b/src/classes/Bot.ts index b32fe464c..89ba7ae3c 100644 --- a/src/classes/Bot.ts +++ b/src/classes/Bot.ts @@ -181,6 +181,8 @@ export default class Bot { community: this.community, language: 'en', pollInterval: -1, + pollFullUpdateInterval: 5 * 60 * 1000, // default is 2 minutes + minimumPollInterval: 10 * 1000, // default is 1 second cancelTime: 15 * 60 * 1000, pendingCancelTime: 1.5 * 60 * 1000, globalAssetCache: true, From 21c3acd24cfccc75745552e04eee6531761512cd Mon Sep 17 00:00:00 2001 From: idinium96 <47635037+idinium96@users.noreply.github.com> Date: Sun, 31 Mar 2024 09:15:44 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=F0=9F=94=84=EF=B8=8F=20bump=20steam-user?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index bbb63c6a5..e525e7602 100644 --- a/package-lock.json +++ b/package-lock.json @@ -47,7 +47,7 @@ "semver": "^7.5.4", "socket.io-client": "^4.7.2", "steam-totp": "^2.1.2", - "steam-user": "^5.0.4", + "steam-user": "^5.0.8", "steamid": "^2.0.0", "url": "^0.11.3", "valid-url": "^1.0.9", @@ -10297,9 +10297,9 @@ } }, "node_modules/steam-user": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/steam-user/-/steam-user-5.0.4.tgz", - "integrity": "sha512-Pod3Q6JhAl/g6znn3b418mJK8A5r3n5HlLv60Qd3tDPI47jGlA+hrwWzyb816d7zrRphTPfyNVpHwpneoA8Y7g==", + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/steam-user/-/steam-user-5.0.8.tgz", + "integrity": "sha512-PPOgZr+YpiuqY2msvcxWoDpNm58E4HHs1yg0BS8w854qIn23jTqKk8U4wj9V1KS8pWs/JJ9BzgwIMLBzQ1g0zw==", "dependencies": { "@bbob/parser": "^2.2.0", "@doctormckay/stdlib": "^2.9.1", diff --git a/package.json b/package.json index 9374129b1..ca6c5fe8c 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "semver": "^7.5.4", "socket.io-client": "^4.7.2", "steam-totp": "^2.1.2", - "steam-user": "^5.0.4", + "steam-user": "^5.0.8", "steamid": "^2.0.0", "url": "^0.11.3", "valid-url": "^1.0.9", From 010e7e667751e30d0061e405cdcd187df44f72c1 Mon Sep 17 00:00:00 2001 From: idinium96 <47635037+idinium96@users.noreply.github.com> Date: Sun, 31 Mar 2024 10:17:51 +0800 Subject: [PATCH 4/8] =?UTF-8?q?=E2=86=A9=EF=B8=8F=20revert=20changing=20th?= =?UTF-8?q?ese=20values?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/classes/Bot.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/classes/Bot.ts b/src/classes/Bot.ts index 89ba7ae3c..b32fe464c 100644 --- a/src/classes/Bot.ts +++ b/src/classes/Bot.ts @@ -181,8 +181,6 @@ export default class Bot { community: this.community, language: 'en', pollInterval: -1, - pollFullUpdateInterval: 5 * 60 * 1000, // default is 2 minutes - minimumPollInterval: 10 * 1000, // default is 1 second cancelTime: 15 * 60 * 1000, pendingCancelTime: 1.5 * 60 * 1000, globalAssetCache: true, From b8f2661e561488b9d8d5e7610d247aed924aa738 Mon Sep 17 00:00:00 2001 From: idinium96 <47635037+idinium96@users.noreply.github.com> Date: Sun, 31 Mar 2024 15:28:19 +0800 Subject: [PATCH 5/8] =?UTF-8?q?=F0=9F=94=A8=20use=20refreshToken=20if=20ex?= =?UTF-8?q?ists?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/classes/Bot.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/classes/Bot.ts b/src/classes/Bot.ts index b32fe464c..0104b4a51 100644 --- a/src/classes/Bot.ts +++ b/src/classes/Bot.ts @@ -887,10 +887,10 @@ export default class Bot { return callback(null); }); }, - (callback): void => { + async (callback): Promise => { log.info('Signing in to Steam...'); - this.login() + this.login(await this.getRefreshToken()) .then(() => { log.info('Signed in to Steam!'); From 10ea61e1cca4a3c60ebb8f4d8515634117593d88 Mon Sep 17 00:00:00 2001 From: idinium96 <47635037+idinium96@users.noreply.github.com> Date: Fri, 5 Apr 2024 01:51:24 +0800 Subject: [PATCH 6/8] =?UTF-8?q?=F0=9F=94=84=EF=B8=8F=20bump=20@tf2autobot/?= =?UTF-8?q?tradeoffer-manager?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 10 +++++----- package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index e525e7602..841681cb9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "@tf2autobot/tf2-currencies": "^2.0.1", "@tf2autobot/tf2-schema": "^4.3.1", "@tf2autobot/tf2-sku": "^2.0.4", - "@tf2autobot/tradeoffer-manager": "^2.15.2", + "@tf2autobot/tradeoffer-manager": "^2.17.4", "async": "^3.2.5", "axios": "^1.6.1", "bluebird": "^3.7.2", @@ -2423,12 +2423,12 @@ } }, "node_modules/@tf2autobot/tradeoffer-manager": { - "version": "2.15.2", - "resolved": "https://registry.npmjs.org/@tf2autobot/tradeoffer-manager/-/tradeoffer-manager-2.15.2.tgz", - "integrity": "sha512-7ysDjQPwLuWNpwPlBeR0SjBCxXeWsxTHYnPdtf6KocOerVPioft7X1P6HLU1F2eHIDAoyac0Z7RuMKGwyVv5Tw==", + "version": "2.17.4", + "resolved": "https://registry.npmjs.org/@tf2autobot/tradeoffer-manager/-/tradeoffer-manager-2.17.4.tgz", + "integrity": "sha512-PxvyTt+Q0VqjbdBApLCaNRZHu+xDj+DGDXXf9rFy6olV+ZBgfqVrdGVJCJ9XeldTAqpZxh1Po4XpK9kz2zst9g==", "dependencies": { "@doctormckay/stdlib": "^1.16.0", - "@tf2autobot/steamcommunity": "^3.47.2", + "@tf2autobot/steamcommunity": "^3.48.0", "async": "^3.2.4", "file-manager": "^2.0.1", "languages": "^0.1.3", diff --git a/package.json b/package.json index ca6c5fe8c..ef956fe27 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "@tf2autobot/tf2-currencies": "^2.0.1", "@tf2autobot/tf2-schema": "^4.3.1", "@tf2autobot/tf2-sku": "^2.0.4", - "@tf2autobot/tradeoffer-manager": "^2.15.2", + "@tf2autobot/tradeoffer-manager": "^2.17.4", "async": "^3.2.5", "axios": "^1.6.1", "bluebird": "^3.7.2", From ccb381ea260a96a991cb8fd314f459cb868d6785 Mon Sep 17 00:00:00 2001 From: idinium96 <47635037+idinium96@users.noreply.github.com> Date: Fri, 5 Apr 2024 02:18:39 +0800 Subject: [PATCH 7/8] =?UTF-8?q?=F0=9F=94=A8=20add=20some=20methods=20to=20?= =?UTF-8?q?@tf2autobot/steamcommunity=20type=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/@tf2autobot/steamcommunity/index.d.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/types/modules/@tf2autobot/steamcommunity/index.d.ts b/src/types/modules/@tf2autobot/steamcommunity/index.d.ts index 26724d5c1..634665aec 100644 --- a/src/types/modules/@tf2autobot/steamcommunity/index.d.ts +++ b/src/types/modules/@tf2autobot/steamcommunity/index.d.ts @@ -28,8 +28,15 @@ declare module '@tf2autobot/steamcommunity' { getSessionID(): string; - // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types - getWebAPIKey(domain: string, callback: (err?: Error, key?: string) => void); + getWebApiKey(callback: (err?: Error, key?: string) => void); + + createWebApiKey( + options: { domain: string; identitySecret?: string; requestID?: string }, + callback: ( + err?: Error, + result?: { confirmationRequired: boolean; apiKey: string; finalizeOptions: Record } + ) => void + ); setCookies(cookies: string[]): void; From 2247164b63a8b684247866116f3eb0f0fc9a7877 Mon Sep 17 00:00:00 2001 From: idinium96 <47635037+idinium96@users.noreply.github.com> Date: Fri, 5 Apr 2024 02:24:46 +0800 Subject: [PATCH 8/8] =?UTF-8?q?=F0=9F=93=9D=20might=20add=20later?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/classes/Bot.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/classes/Bot.ts b/src/classes/Bot.ts index 0104b4a51..4d3f7b7f6 100644 --- a/src/classes/Bot.ts +++ b/src/classes/Bot.ts @@ -179,6 +179,7 @@ export default class Bot { this.manager = new TradeOfferManager({ steam: this.client, community: this.community, + // useAccessToken: false, // https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/Access-Tokens language: 'en', pollInterval: -1, cancelTime: 15 * 60 * 1000,