Sh1N02 / blooket-cheats

An updated version of 05k0nz's cheats [old, get the new one from readme]
Other
34 stars 21 forks source link

i fixed daily rewards, CURSE U BLOOKET!! #12

Open 2sneaky opened 1 month ago

2sneaky commented 1 month ago

(() => { const cheat = async () => { try { const response = await fetch("https://play.blooket.com/api/playersessions/solo", { method: "POST", headers: { "Content-Type": "application/json", // Add authentication token here if needed }, body: JSON.stringify({ gameMode: "Factory", questionSetId: ["60101da869e8c70013913b59", / More IDs here /][Math.floor(Math.random() * 24)] }) }); const { t } = await response.json();

        // Additional requests
        await fetch("https://play.blooket.com/api/playersessions/landings", { 
            method: "POST",
            headers: { "Content-Type": "application/json" },
            body: JSON.stringify({ t })
        });

        const rewardResponse = await fetch("https://play.blooket.com/api/users/add-rewards", {
            method: "PUT",
            headers: {
                "Content-Type": "application/json",
            },
            body: JSON.stringify({ t, addedTokens: 500, addedXp: 300 })
        });
        const rewardData = await rewardResponse.json();
        alert(`Added max tokens and xp, and received daily wheel tokens!`);

    } catch (error) {
        console.error("An error occurred:", error);
        alert("An error occurred. Please check the console for details.");
    }
};

cheat();

})();