blum-auto-play

1.0.3 • Public • Published

Blum auto play game

A script that will play mini game in Blum for you, using your tickets and collecting blum points

Installation

  1. Install the blum-auto-play package:
npm install blum-auto-play
  1. Configure package.json:

    • Open package.json
    • Add "type": "module" to the JSON structure:
{
  "type": "module"
}
  1. Create a index.js file and paste the code:
import { play } from "blum-auto-play";
const authToken = "Bearer <your_token>";
play(authToken);
  1. Add your Bearer token:

    • Copy your Blum Bearer token and paste it in the index.js file.

Receiving a Bearer token

  1. Install the Resource Override extension for Chrome

  2. Set up Resource Override:

    • Click the Add Rule button and select Change Headers.
    • In the For field, enter * (for convenience).
    • Click Edit Headers and select from the presets: Enable CORS, Allow Frames and Allow Outside Content.
    • Close the settings window.
  3. Get your Bearer token:

    • Go to the web version of Telegram and open DevTools (usually F12 or Ctrl+Shift+I).
    • Launch Blum and go to the Network tab in DevTools.
    • Find your Bearer token in the request headers.
  4. Copy your Bearer token and paste it into the index.js file.

how to get Bearer token

Run the script:

   node index.js

Functionality

  • Starts a new game
  • Collects a random number of points between 170 and 195
  • Waits a random amount of time between 30 and 35 seconds
  • Claims the points
  • If an error occurs, waits 5 seconds and retries
  • If the token is invalid, logs an error and exits
  • If the number of tickets is 0, logs an error and exits

Note:

Once you have received the Bearer token, be sure to disable the Resource Override extension to avoid problems with other sites.

extension

Happy mining!


Блум автоматический игровой процесс

Скрипт, который будет играть за вас в мини-игру в Blum, используя ваши билеты и собирая очки Blum.

Установка

  1. Установите пакет blum-auto-play:

    npm install blum-auto-play
  2. Настройте package.json:

    • Откройте файл package.json.
    • Добавьте "type": "module" в JSON-структуру:
    {
      "type": "module"
    }
  3. Создайте файл index.js и добавьте следующий код:

    import { play } from "blum-auto-play";
    const authToken = "Bearer <ваш_токен>";
    play(authToken);
  4. Добавьте ваш Bearer токен:

    • Вставьте ваш Bearer токен вместо <Bearer token> в файле index.js.

Получение Bearer токена

  1. Установите расширение Resource Override для Chrome

  2. Настройте Resource Override:

    • Нажмите кнопку Add Rule и выберите Change Headers.
    • В поле For введите * (для удобства).
    • Нажмите Edit Headers и выберите в предустановках: Enable CORS, Allow Frames и Allow Outside Content.
    • Закройте окно настройки.
  3. Откройте Web Telegram и DevTools:

    • Перейдите на веб-версию Telegram и откройте DevTools (обычно F12 или Ctrl+Shift+I).
    • Запустите Blum и перейдите на вкладку Network в DevTools.
    • Найдите ваш Bearer токен в заголовках запросов.
  4. Копируйте ваш Bearer токен и вставьте его в файл index.js.

how to get Bearer token

Запустите скрипт:

   node index.js

Функциональность

  • Запускает новую игру.
  • Собирает случайное количество очков от 170 до 195.
  • Ждет случайное время от 30 до 35 секунд.
  • Забирает очки.
  • В случае ошибки ждет 5 секунд и пробует снова.
  • Если токен недействителен, скрипт выводит ошибку и завершает работу.
  • Если билетов 0, скрипт выводит ошибку и завершает работу.

Важно:

После того как вы получили Bearer токен, обязательно отключите расширение Resource Override, чтобы избежать проблем с другими сайтами.

extension

Приятного майнинга!

Package Sidebar

Install

npm i blum-auto-play

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

1.04 MB

Total Files

8

Last publish

Collaborators

  • ppv