diff --git a/config.py b/config.py index ee2fa26..20beb45 100644 --- a/config.py +++ b/config.py @@ -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"] diff --git a/standalone_twitch_pubsub.py b/standalone_twitch_pubsub.py index 1f2a4bd..1a77114 100644 --- a/standalone_twitch_pubsub.py +++ b/standalone_twitch_pubsub.py @@ -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)