Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions framework/isobot/currency.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ def deposit(self, user:discord.User, amount:int):
"""Moves a specified amount of coins to the user's bank."""
currency["bank"][str(user.id)] += amount
currency["wallet"][str(user.id)] -= amount
save()
self.save()
print(f"[Framework/CurrencyAPI] Moved {amount} coins to bank. User: {user} [{user.id}]")
def withdraw(self, user:discord.User, amount:int):
"""Moves a specified amount of coins to the user's wallet."""
currency["wallet"][str(user.id)] += amount
currency["bank"][str(user.id)] -= amount
save()
self.save()
print(f"[Framework/CurrencyAPI] Moved {amount} coins to wallet. User: {user} [{user.id}]")