🐛
This commit is contained in:
@ -21,7 +21,7 @@ class GamesCog(commands.Cog):
|
||||
else:
|
||||
new_message = ctx.message.author.display_name + " has " + str(response) + " GwendoBucks"
|
||||
await ctx.send(new_message)
|
||||
|
||||
|
||||
# Gives another user an amount of GwendoBucks
|
||||
@commands.command()
|
||||
async def give(self, ctx, *, content):
|
||||
|
@ -9,7 +9,7 @@ class SwCog(commands.Cog):
|
||||
|
||||
def __init__(self,client):
|
||||
self.client = client
|
||||
|
||||
|
||||
# Rolls star wars dice
|
||||
@commands.command()
|
||||
async def swroll(self, ctx, *, content):
|
||||
|
@ -121,8 +121,7 @@ def drawImage(channel):
|
||||
winBar = winBar.rotate(diagonalAngle,expand=1)
|
||||
startx -= placeGridSize[0]*3 + border
|
||||
starty -= gridBorder + border
|
||||
|
||||
|
||||
|
||||
mask = winBar.copy()#.convert("L")
|
||||
#mask.putalpha(128)
|
||||
#mask.save("test.png")
|
||||
|
@ -24,7 +24,7 @@ def addMoney(user,amount):
|
||||
data[user]["money"] = points + amount
|
||||
else:
|
||||
logThis("Error adding money")
|
||||
|
||||
|
||||
with open("resources/users.json", "w") as f:
|
||||
json.dump(data,f,indent=4)
|
||||
|
||||
|
@ -165,7 +165,7 @@ def makeFolder(path):
|
||||
def makeFiles():
|
||||
with open("resources/startingFiles.json") as f:
|
||||
data = json.load(f)
|
||||
|
||||
|
||||
for path, content in data["json"].items():
|
||||
makeJsonFile(path,content)
|
||||
|
||||
|
@ -207,7 +207,7 @@ async def runMonopoly(channel, command, user):
|
||||
oldImage = await channel.send(file = discord.File("resources/games/monopolyBoards/monopolyBoard"+str(channel.id)+".png"))
|
||||
with open("resources/games/oldImages/monopoly"+str(channel.id), "w") as f:
|
||||
f.write(str(oldImage.id))
|
||||
|
||||
|
||||
if gameContinue:
|
||||
if gameStarted:
|
||||
await asyncio.sleep(60)
|
||||
|
Reference in New Issue
Block a user