diff --git a/Dockerfile_standalone_Twitch_Pubsub b/Dockerfile_standalone_Twitch_Pubsub index 1e268f0..8ea2f40 100644 --- a/Dockerfile_standalone_Twitch_Pubsub +++ b/Dockerfile_standalone_Twitch_Pubsub @@ -1,4 +1,4 @@ -FROM python:3.10.0a7-alpine3.13 +FROM python:3.7.10-alpine3.12 WORKDIR /Praxis diff --git a/docker-compose.yaml b/docker-compose.yaml index 9907947..603da78 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -6,7 +6,7 @@ services: - 5000:5000 environment: - ISDOCKER=cat - twitchscript_standalone: + standalone_twitchscript: image: standalone_twitchscript environment: - ISDOCKER=cat @@ -14,7 +14,7 @@ services: image: standalone_twitch_pubsub environment: - ISDOCKER=cat - discordscript_standalone: + standalone_discordscript: image: standalone_discordscript environment: - ISDOCKER=cat \ No newline at end of file diff --git a/standalone_twitch_pubsub.py b/standalone_twitch_pubsub.py index 1a77114..0b18474 100644 --- a/standalone_twitch_pubsub.py +++ b/standalone_twitch_pubsub.py @@ -47,14 +47,13 @@ class Twitch_Pubsub(): self.pubsub.start() print("started") - # TwitchAuthorizationException() gets raised by the listen_channel_points def next(self): 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) self.uuid_2 = self.pubsub.listen_channel_points(user_id, self.callback_channelPoints) - input('press ENTER to close...') + #input('press ENTER to close...') def stop(self): self.pubsub.unlisten(self.uuid_1) @@ -79,8 +78,8 @@ if __name__ == "__main__": testModule.twitch = Twitch(testModule.credential.pubsub_client_id, testModule.credential.pubsub_secret) #pprint(testModule.twitch.get_users(logins=['thecuriousnerd'])) - testModule.get_tokens() - #testModule.setup() + #testModule.get_tokens() + testModule.setup() testModule.start() testModule.next() - testModule.stop() \ No newline at end of file + #testModule.stop() \ No newline at end of file