瀏覽代碼

more debug prints

tBKwtWS 7 年之前
父節點
當前提交
fcbc72d9cf
共有 1 個文件被更改,包括 3 次插入0 次删除
  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()
             user = event.source.nick.lower()
             level, xp, xpspent, karma, coin = GameHelpers.get_info(self, user)
             level, xp, xpspent, karma, coin = GameHelpers.get_info(self, user)
+            print(xp)
             if len(command.split()) == 1:
             if len(command.split()) == 1:
+                print("XP < 10: " + str(xp < 10))
                 if xp < 10:
                 if xp < 10:
                     connection.privmsg(replyto, "Insuficcient XP, you need at least 10.")
                     connection.privmsg(replyto, "Insuficcient XP, you need at least 10.")
                 else:
                 else:
@@ -173,6 +175,7 @@ def do_command(self, connection, event):
                 except:
                 except:
                     connection.privmsg(replyto, "Invalid amount.")
                     connection.privmsg(replyto, "Invalid amount.")
                     return
                     return
+                print("XP < level * 10: " + str(xp < levels * 10))
                 if levels < 1:
                 if levels < 1:
                     connection.privmsg(replyto, "Invalid amount.")
                     connection.privmsg(replyto, "Invalid amount.")
                 elif xp < levels * 10:
                 elif xp < levels * 10: