✨ restart function
This commit is contained in:
@@ -169,7 +169,7 @@ def drawGallows():
|
||||
def drawImage(channel):
|
||||
with open("resources/games/hangmanGames.json", "r") as f:
|
||||
data = json.load(f)
|
||||
|
||||
|
||||
random.seed(data[channel]["game ID"])
|
||||
|
||||
background = Image.new("RGBA",(1600,1000),color=backgroundColor)
|
||||
|
||||
@@ -7,6 +7,7 @@ import time # Used for logging
|
||||
import logging # Used for... you know... logging
|
||||
import wikia # Used by findWikiPage
|
||||
import os # Used by makeFiles
|
||||
import git # Used by stopServer()
|
||||
|
||||
logging.basicConfig(filename="gwendolyn.log", level=logging.INFO)
|
||||
|
||||
@@ -255,6 +256,9 @@ def stopServer():
|
||||
with open("resources/games/hangmanGames.json", "w") as f:
|
||||
json.dump(emptyDict,f,indent=4)
|
||||
|
||||
g = git.cmd.Git("")
|
||||
g.pull()
|
||||
|
||||
def deleteGame(gameType,channel):
|
||||
with open("resources/games/games.json", "r") as f:
|
||||
data = json.load(f)
|
||||
|
||||
Reference in New Issue
Block a user