Skip to content

Commit

Permalink
Fix poe custom bot download. Don't display deleted bots
Browse files Browse the repository at this point in the history
  • Loading branch information
Cohee1207 committed Apr 12, 2023
1 parent 415af67 commit 45d836c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions poe-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ class Client {
const botList = viewer.availableBots;

const bots = {};
for (const bot of botList) {
const url = `https://poe.com/_next/data/${this.next_data.buildId}/${bot.displayName.toLowerCase()}.json`;
for (const bot of botList.filter(x => x.deletionState == 'not_deleted')) {
const url = `https://poe.com/_next/data/${this.next_data.buildId}/${bot.displayName}.json`;
logger.info(`Downloading ${url}`);

const r = await request_with_retries(() => this.session.get(url));
Expand Down

0 comments on commit 45d836c

Please sign in to comment.