Docker Fixes
This commit is contained in:
parent
972738ca11
commit
3084740238
@ -1,4 +1,4 @@
|
||||
FROM python:3.10.0a7-alpine3.13
|
||||
FROM python:3.7.10-alpine3.12
|
||||
|
||||
WORKDIR /Praxis
|
||||
|
||||
|
||||
@ -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
|
||||
@ -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()
|
||||
#testModule.stop()
|
||||
Loading…
Reference in New Issue
Block a user