Fix Poe client

This commit is contained in:
Cohee
2023-06-07 23:08:20 +03:00
parent bb8657f93f
commit caa985590b

View File

@@ -318,7 +318,7 @@ class Client {
if (!viewer.availableBots) { if (!viewer.availableBots) {
throw new Error('Invalid token.'); throw new Error('Invalid token.');
} }
const botList = viewer.viewerBotList; const botList = viewer.availableBotsConnection.edges.map(x => x.node);
const retries = 2; const retries = 2;
const bots = {}; const bots = {};
for (const bot of botList.filter(x => x.deletionState == 'not_deleted')) { for (const bot of botList.filter(x => x.deletionState == 'not_deleted')) {