#411 Fix Poe bot list loading

This commit is contained in:
SillyLossy
2023-05-31 01:18:47 +03:00
parent ed74eedc5b
commit e0fdd1513c

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.availableBots; const botList = viewer.viewerBotList;
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')) {