Merge pull request #636 from ramonvc/main

Fix: Exception in thread & KeyError: 'displayName'
This commit is contained in:
xtekky 2023-06-04 00:28:22 +02:00 committed by GitHub
commit 61e22b9700
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,9 +168,9 @@ class Client:
else:
next_data = self.next_data
if not "availableBots" in self.viewer:
if not "viewerBotList" in self.viewer:
raise RuntimeError("Invalid token or no bots are available.")
bot_list = self.viewer["availableBots"]
bot_list = self.viewer["viewerBotList"]
threads = []
bots = {}