Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const playCount = 1;
- const authToken = "YOUR_TOKEN";
- const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms));
- const headers = {
- 'accept': 'application/json, text/plain, */*',
- 'accept-language': 'en-US,en;q=0.9',
- 'authorization': authToken,
- 'origin': 'https://telegram.blum.codes',
- 'priority': 'u=1, i',
- 'sec-ch-ua': '"Chromium";v="128", "Not;A=Brand";v="24", "Microsoft Edge";v="128", "Microsoft Edge WebView2";v="128"',
- 'sec-ch-ua-mobile': '?0',
- 'sec-ch-ua-platform': '"Windows"',
- 'sec-fetch-dest': 'empty',
- 'sec-fetch-mode': 'cors',
- 'sec-fetch-site': 'same-site',
- 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0'
- };
- async function playAndClaimGame() {
- for (let i = 0; i < playCount; i++) {
- console.log(`[blum-bot] Starting game #${i}...`);
- const points = Math.floor(Math.random() * 41) + 80;
- const playResponse = await fetch('https://game-domain.blum.codes/api/v1/game/play', {
- method: 'POST',
- headers,
- });
- const { gameId } = await playResponse.json();
- console.log(`[blum-bot] Game ID: ${gameId}`);
- const sleepDuration = (Math.floor(Math.random() * 11) + 50) * 1000;
- console.log(`[blum-bot] Sleeping for ${sleepDuration / 1000} seconds`);
- await sleep(sleepDuration);
- headers['content-type'] = 'application/json';
- const claimResponse = await fetch('https://game-domain.blum.codes/api/v1/game/claim', {
- method: 'POST',
- headers,
- body: JSON.stringify({ gameId, points })
- });
- const claimStatus = await claimResponse.text();
- console.log(`[blum-bot] Game status: ${claimStatus} | Points: ${points}`);
- const additionalSleepDuration = (Math.floor(Math.random() * 6) + 15) * 1000;
- console.log(`[blum-bot] Sleeping for ${additionalSleepDuration / 1000} seconds`);
- await sleep(additionalSleepDuration);
- }
- console.log("[blum-bot] Execution completed");
- }
- (async () => {
- await playAndClaimGame();
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement