From b9ea8cc999ed33fa5dbda9a9f018c46e50c24863 Mon Sep 17 00:00:00 2001 From: wavpro <31097540+wavpro@users.noreply.github.com> Date: Fri, 2 Jun 2023 21:03:56 +0200 Subject: [PATCH] Update bot.js appOwnershipCached is deprecated since v4.22.1, use ownershipCached instead --- lib/bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bot.js b/lib/bot.js index 8eea89d..418d911 100644 --- a/lib/bot.js +++ b/lib/bot.js @@ -132,7 +132,7 @@ class Bot extends EventEmitter { // Ensure we own CSGO // We have to wait until app ownership is cached to safely check - this.steamClient.once('appOwnershipCached', () => { + this.steamClient.once('ownershipCached', () => { if (!this.steamClient.ownsApp(730)) { winston.info(`${this.username} doesn't own CS:GO, retrieving free license`);