modified: bot.py
This commit is contained in:
5
bot.py
5
bot.py
@@ -518,11 +518,6 @@ async def level(ctx):
|
||||
# Lade die Benutzerdaten (XP und Level) aus der Datenbank
|
||||
user_data = load_user_data(user_id)
|
||||
|
||||
if "xp" not in user_data:
|
||||
user_data["xp"] = 0
|
||||
if "level" not in user_data:
|
||||
user_data["level"] = 1
|
||||
|
||||
# Berechne die für das nächste Level benötigten XP
|
||||
current_level = user_data["level"]
|
||||
current_xp = user_data["xp"]
|
||||
|
||||
Reference in New Issue
Block a user