pubsub fix

This commit is contained in:
Alex Orid 2021-04-23 16:06:14 -04:00
parent 0e15d236e6
commit 972738ca11
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ discord_module: bool = False
test_module: bool = False
user_module: bool = True
autoJoin_TwitchChannel = "thecuriousnerd"
autoJoin_TwitchChannels = ["thecuriousnerd"]
whitelisted_TwitchPowerUsers = ["thecuriousnerd"]

View File

@ -49,7 +49,7 @@ class Twitch_Pubsub():
# TwitchAuthorizationException() gets raised by the listen_channel_points
def next(self):
user_id = self.twitch.get_users(logins=['my_username'])['data'][0]['id']
user_id = self.twitch.get_users(logins=[config.autoJoin_TwitchChannel])['data'][0]['id']
if user_id is not None: print("found user_id")
print(user_id)
self.uuid_1 = self.pubsub.listen_whispers(user_id, self.callback_whisper)