-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
99 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ | |
PROFILE_KEY = 'profile' | ||
SECRET_KEY = 'ThisIsTheSecretKey' | ||
JWT_PAYLOAD = 'jwt_payload' | ||
|
||
REDIS_URL = 'REDIS_URL' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: '3' | ||
|
||
services: | ||
redis: | ||
image: redis:alpine | ||
container_name: redis | ||
restart: always | ||
# for local dev, expose ports | ||
ports: | ||
- 6379:6379 | ||
# webapp: | ||
# image: stunning-happiness:latest | ||
# container_name: stunning-happiness | ||
# restart: always | ||
# environment: | ||
# AUTH0_CLIENT_ID: ${AUTH0_CLIENT_ID} | ||
# AUTH0_DOMAIN: ${AUTH0_DOMAIN} | ||
# AUTH0_CLIENT_SECRET: ${AUTH0_CLIENT_SECRET} | ||
# AUTH0_CALLBACK_URL: ${AUTH0_CALLBACK_URL} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import pickle | ||
|
||
class Party(object): | ||
def __init__(self, name, playername): | ||
self.party_name = name | ||
self.players = set(playername) | ||
self.game_over = False | ||
self.currently_playing = playername | ||
|
||
def add_player(self, playername): | ||
self.players.add(playername) | ||
|
||
def del_player(self, playername): | ||
self.players.discard(playername) | ||
|
||
def close_game(self): | ||
self.game_over = True | ||
|
||
def pickle(self): | ||
return pickle.dumps(self) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ python-dotenv | |
requests | ||
authlib>=0.14.1 | ||
Flask-WTF | ||
redis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters