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
|
WORKDIR /Praxis
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@ services:
|
|||||||
- 5000:5000
|
- 5000:5000
|
||||||
environment:
|
environment:
|
||||||
- ISDOCKER=cat
|
- ISDOCKER=cat
|
||||||
twitchscript_standalone:
|
standalone_twitchscript:
|
||||||
image: standalone_twitchscript
|
image: standalone_twitchscript
|
||||||
environment:
|
environment:
|
||||||
- ISDOCKER=cat
|
- ISDOCKER=cat
|
||||||
@ -14,7 +14,7 @@ services:
|
|||||||
image: standalone_twitch_pubsub
|
image: standalone_twitch_pubsub
|
||||||
environment:
|
environment:
|
||||||
- ISDOCKER=cat
|
- ISDOCKER=cat
|
||||||
discordscript_standalone:
|
standalone_discordscript:
|
||||||
image: standalone_discordscript
|
image: standalone_discordscript
|
||||||
environment:
|
environment:
|
||||||
- ISDOCKER=cat
|
- ISDOCKER=cat
|
||||||
@ -47,14 +47,13 @@ class Twitch_Pubsub():
|
|||||||
self.pubsub.start()
|
self.pubsub.start()
|
||||||
print("started")
|
print("started")
|
||||||
|
|
||||||
# TwitchAuthorizationException() gets raised by the listen_channel_points
|
|
||||||
def next(self):
|
def next(self):
|
||||||
user_id = self.twitch.get_users(logins=[config.autoJoin_TwitchChannel])['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)
|
||||||
self.uuid_2 = self.pubsub.listen_channel_points(user_id, self.callback_channelPoints)
|
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):
|
def stop(self):
|
||||||
self.pubsub.unlisten(self.uuid_1)
|
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)
|
testModule.twitch = Twitch(testModule.credential.pubsub_client_id, testModule.credential.pubsub_secret)
|
||||||
#pprint(testModule.twitch.get_users(logins=['thecuriousnerd']))
|
#pprint(testModule.twitch.get_users(logins=['thecuriousnerd']))
|
||||||
|
|
||||||
testModule.get_tokens()
|
#testModule.get_tokens()
|
||||||
#testModule.setup()
|
testModule.setup()
|
||||||
testModule.start()
|
testModule.start()
|
||||||
testModule.next()
|
testModule.next()
|
||||||
testModule.stop()
|
#testModule.stop()
|
||||||
Loading…
Reference in New Issue
Block a user