Skip to content

Commit

Permalink
Fixed issue with invalid monthly usage stats text file
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonah Pierce committed Feb 1, 2021
1 parent 39adb5c commit cd4fe28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ def commands():

# Create the file for all the commands and cogs
# That will be used for the statistics file
f = open("stats_year{}_month{}_day{}.txt".format(
now.year, now.month, now.day
f = open("{}-{}-{}-stats.txt".format(
now.year - (1 if (now.month - 1 == 0) else 0),
12 if (now.month - 1 == 0) else (now.month - 1), 1
), "w")
cogs = {}
for command in OMEGA_PSI.walk_commands():
Expand Down
1 change: 1 addition & 0 deletions cogs/game/minigames/black_box/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ def direct_laser(self, direction, offset):

async def setup(self):
"""Sets up the game by asking the player how many atoms they want"""

message = await self.ctx.send(embed = Embed(
title = "Configuration",
description = "How many atoms do you want to exist in the black box?",
Expand Down

0 comments on commit cd4fe28

Please sign in to comment.