From fcc6448d7af32a6fb2672c976580b58f0b38ea1c Mon Sep 17 00:00:00 2001 From: RossAscends <124905043+RossAscends@users.noreply.github.com> Date: Thu, 29 Jun 2023 16:42:59 +0900 Subject: [PATCH] improve Poe futureproofing --- src/poe-client.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/poe-client.js b/src/poe-client.js index c6c67e43a..f67f6bd64 100644 --- a/src/poe-client.js +++ b/src/poe-client.js @@ -395,6 +395,7 @@ class Client { //if API changes in the future, just change these to find the new path const viewerKeyName = 'viewer' const botNameKeyName = 'chatOfBotDisplayName' + const defaultBotKeyName = 'defaultBotNickname' const r = await request_with_retries(() => this.session.get(this.home_url)); const jsonRegex = /