Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.

Commit cb294a7

Browse files
committed
Remove direct database loading in minigames cog
1 parent 9b8c51a commit cb294a7

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

cogs/minigames.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
color = discord.Color.random()
1515
currency = framework.isobot.currency.CurrencyAPI("database/currency.json", "logs/currency.log")
1616

17-
with open(f"{wdir}/database/currency.json", 'r', encoding="utf-8") as f: currency = json.load(f)
18-
19-
def save():
20-
with open(f"{wdir}/database/currency.json", 'w+', encoding="utf-8") as f: json.dump(currency, f)
21-
2217
# Commands
2318
class Minigames(commands.Cog):
2419
def __init__(self, bot):

0 commit comments

Comments
 (0)