From ac217e6fd542e1e2595edc627d36cd3333224953 Mon Sep 17 00:00:00 2001 From: snipe_blaze <72265661+notsniped@users.noreply.github.com> Date: Sun, 21 Aug 2022 15:05:32 +0530 Subject: [PATCH] Add missing keywords to `framework.isobot.currency` --- framework/isobot/currency.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/isobot/currency.py b/framework/isobot/currency.py index c01905d0..40bdf5d3 100644 --- a/framework/isobot/currency.py +++ b/framework/isobot/currency.py @@ -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}]")