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
10 changes: 8 additions & 2 deletions isobot/currency.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import json
import discord
from colors import Colors

class Colors():
"""Contains general stdout colors."""
cyan = '\033[96m'
red = '\033[91m'
green = '\033[92m'
end = '\033[0m'

class CurrencyAPI(Colors):
"""The isobot API used for managing currency.
Expand Down Expand Up @@ -42,4 +48,4 @@ def withdraw(self, user:discord.User, amount:int):
currency["wallet"][str(user.id)] += amount
currency["bank"][str(user.id)] -= amount
save()
print(f"[Framework/CurrencyAPI] Moved {amount} coins to wallet. User: {user} [{user.id}]")
print(f"[Framework/CurrencyAPI] Moved {amount} coins to wallet. User: {user} [{user.id}]")