pubsub fix
This commit is contained in:
parent
0e15d236e6
commit
972738ca11
@ -8,6 +8,7 @@ discord_module: bool = False
|
|||||||
test_module: bool = False
|
test_module: bool = False
|
||||||
user_module: bool = True
|
user_module: bool = True
|
||||||
|
|
||||||
|
autoJoin_TwitchChannel = "thecuriousnerd"
|
||||||
autoJoin_TwitchChannels = ["thecuriousnerd"]
|
autoJoin_TwitchChannels = ["thecuriousnerd"]
|
||||||
whitelisted_TwitchPowerUsers = ["thecuriousnerd"]
|
whitelisted_TwitchPowerUsers = ["thecuriousnerd"]
|
||||||
|
|
||||||
|
|||||||
@ -49,7 +49,7 @@ class Twitch_Pubsub():
|
|||||||
|
|
||||||
# TwitchAuthorizationException() gets raised by the listen_channel_points
|
# TwitchAuthorizationException() gets raised by the listen_channel_points
|
||||||
def next(self):
|
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")
|
if user_id is not None: print("found user_id")
|
||||||
print(user_id)
|
print(user_id)
|
||||||
self.uuid_1 = self.pubsub.listen_whispers(user_id, self.callback_whisper)
|
self.uuid_1 = self.pubsub.listen_whispers(user_id, self.callback_whisper)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user