Browse Source

more debug prints

tBKwtWS 7 năm trước cách đây
mục cha
commit
fcbc72d9cf
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      irc/commands/games.py

+ 3 - 0
irc/commands/games.py

@@ -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: