Przeglądaj źródła

more debug prints

tBKwtWS 7 lat temu
rodzic
commit
fcbc72d9cf
1 zmienionych plików z 3 dodań i 0 usunięć
  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: