|
|
@@ -161,7 +161,9 @@ def do_command(self, connection, event):
|
|
|
|
|
|
user = event.source.nick.lower()
|
|
|
level, xp, xpspent, karma, coin = GameHelpers.get_info(self, user)
|
|
|
+ print(xp)
|
|
|
if len(command.split()) == 1:
|
|
|
+ print("XP < 10: " + str(xp < 10))
|
|
|
if xp < 10:
|
|
|
connection.privmsg(replyto, "Insuficcient XP, you need at least 10.")
|
|
|
else:
|
|
|
@@ -173,6 +175,7 @@ def do_command(self, connection, event):
|
|
|
except:
|
|
|
connection.privmsg(replyto, "Invalid amount.")
|
|
|
return
|
|
|
+ print("XP < level * 10: " + str(xp < levels * 10))
|
|
|
if levels < 1:
|
|
|
connection.privmsg(replyto, "Invalid amount.")
|
|
|
elif xp < levels * 10:
|