Add protocol debugging (uncomment changed line in bot.c), and fix QVariant type = 7