GithubHelp home page GithubHelp logo

carince / bloxflip-autogambler Goto Github PK

View Code? Open in Web Editor NEW
59.0 4.0 13.0 1.26 MB

Bloxflip gambling automation using the martingale strategy. Earn robux passively while you sit back!

License: GNU General Public License v3.0

TypeScript 74.41% JavaScript 11.07% HTML 14.52%
bloxflip hacktoberfest martingale nodejs typescript

bloxflip-autogambler's Introduction

bloxflip-autogambler

Bloxflip gambling automation using the martingale strategy.
Earn robux passively while you sit back!

GitHub Repo stars GitHub forks GitHub issues License

Warning This automation software is against Bloxflip's Terms of Service, please use this at your own risk and I am not responsible for any terminated accounts.

๐Ÿ’ฅ Features

  • ๐Ÿค– Automated martingale bot (crash and roulette)
  • โ˜” Rain Notifier
  • ๐Ÿ“Š Analytics
  • ๐Ÿ“ Discord Webhook integration
  • ๐Ÿค‘ ITS FREE. (and doesnt steal your token)

๐Ÿ’– Contributing

If you encounter any issues with the bot, feel free to give feedback on the issues page. Feel free to fork the repo and do pull requests to help in maintaining the bot! PR's are always welcome.

โญ Support

Support the project by giving the repository a star!

bloxflip-autogambler's People

Contributors

carince avatar dependabot[bot] avatar nikosszzz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bloxflip-autogambler's Issues

not working/giving error

loaded rollup.config.ts with warnings
(!) Plugin typescript: @rollup/plugin-typescript TS2345: Argument of type 'boolean' is not assignable to parameter of type 'LoggerOptions & { forceClose: boolean; }'.
  Type 'boolean' is not assignable to type '{ forceClose: boolean; }'.
src/backend/index.ts: (26:96)

26         Logger.error("BFAC", "Unable to read UserScript, make sure that UserScript is built.", true);
                                                                                                  ~~~~

(!) Plugin typescript: @rollup/plugin-typescript TS2339: Property 'default' does not exist on type 'PuppeteerExtra'.
src/backend/utils/browser.ts: (14:15)

14     puppeteer.default.use(stealthPlugin());
                 ~~~~~~~

src/backend/utils/browser.ts: (15:46)

15     const browser: Browser = await puppeteer.default.launch(
                                                ~~~~~~~


src/backend/index.ts โ†’ dist/index.js...
(!) Circular dependency
src/backend/utils/logger.ts -> src/backend/utils/config.ts -> src/backend/utils/logger.ts
created dist/index.js in 417ms

src/userScript/index.ts โ†’ dist/userScript.js...
(!) Circular dependencies
src/userScript/utils/ws.ts -> src/userScript/bloxflip/bet.ts -> src/userScript/bloxflip/crash.ts -> src/userScript/utils/ws.ts
src/userScript/bloxflip/bet.ts -> src/userScript/bloxflip/crash.ts -> src/userScript/bloxflip/bet.ts
created dist/userScript.js in 142ms

Fetching user data failed

im not sure if im doing something wrong because thats the first time im using this tool but id love if someone assisted me on this error:

STARTUP Starting bloxflip-autocrash
SUPPORT Support the developers by giving the repo a star! https://github.com/Norikiru/bloxflip-autocrash
PFETCH Fetching user data failed.
Error: undefined

package.json invalid main entry

When running the nmp i command with PowerShell i got this error:

npm ERR! code 1
npm ERR! path D:\Users\Enderbot\Desktop\bloxflip-autocrash\node_modules\puppeteer
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node install.js
npm ERR! node:internal/modules/cjs/loader:400
npm ERR! const err = new Error(
npm ERR! ^
npm ERR!
npm ERR! Error: Cannot find module 'D:\Users\Enderbot\Desktop\bloxflip-autocrash\node_modules\puppeteer\node_modules\ms\index'. Please verify that the package.json has a valid "main" entry
npm ERR! at tryPackage (node:internal/modules/cjs/loader:400:19)
npm ERR! at Module._findPath (node:internal/modules/cjs/loader:613:18)
npm ERR! at Module._resolveFilename (node:internal/modules/cjs/loader:981:27)
npm ERR! at Module._load (node:internal/modules/cjs/loader:841:27)
npm ERR! at Module.require (node:internal/modules/cjs/loader:1061:19)
npm ERR! at require (node:internal/modules/cjs/helpers:103:18)
npm ERR! at setup (D:\Users\Enderbot\Desktop\bloxflip-autocrash\node_modules\puppeteer\node_modules\debug\src\common.js:14:25)
npm ERR! at Object. (D:\Users\Enderbot\Desktop\bloxflip-autocrash\node_modules\puppeteer\node_modules\debug\src\node.js:240:37)
npm ERR! at Module._compile (node:internal/modules/cjs/loader:1159:14)
npm ERR! at Module._extensions..js (node:internal/modules/cjs/loader:1213:10) {
npm ERR! code: 'MODULE_NOT_FOUND',
npm ERR! path: 'D:\Users\Enderbot\Desktop\bloxflip-autocrash\node_modules\puppeteer\node_modules\ms\package.json', npm ERR! requestPath: 'ms'
npm ERR! }
npm ERR!
npm ERR! Node.js v18.12.1 npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Enderbot\AppData\Local\npm-cache_logs\2022-12-01T21_15_34_544Z-debug-0.log

2.0.0: Prerelease

it doesn't wait for the loading times so if the previous bet was a Loss, Inbetween the loading time it will accidentally play another 3 imaginary games while the loading screen is still on (EOS Block Mining) basically giving you 2-3 losses in seconds,

That in turn bumps up the Original Bet by 3X or 4X on each Loss instead of 2X basically making it impossible to use and it also means it no longer using the Martin Gale strategy.

Also there is no way to adjust the original bidding price so you have to start at 0.19RBX, I would rather start the bid at something higher like 25RBX but there's no way to change it

This is a huge bummer because i can't seem to find any other Bloxflip Martin Gale strat bot

Never Joins the game

I started it and it joined the very first game, lost, then never joined again i have left it on for about 30min. I put a 5R bet with a try rate at 2 and cash out at 2
โ–ฒ CLIENT > CRASH Ignoring as we haven't joined this round: 1.61x
โ–ฒ CLIENT > CRASH Failed to join game, bet was not placed before game started.

Rain error and crashing the browser

`C:\Users\Administrator\Downloads\bloxflip-autocrash-main\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:228
throw new Error('Evaluation failed: ' + (0, util_js_1.getExceptionMessage)(exceptionDetails));
^

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'rain')
at pptr://puppeteer_evaluation_script:1:123
at ExecutionContext._ExecutionContext_evaluate (C:\Users\Administrator\Downloads\bloxflip-autocrash-main\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:228:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ExecutionContext.evaluate (C:\Users\Administrator\Downloads\bloxflip-autocrash-main\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:106:16)
at async U (file:///C:/Users/Administrator/Downloads/bloxflip-autocrash-main/dist/index.js:5:613)
at async file:///C:/Users/Administrator/Downloads/bloxflip-autocrash-main/dist/index.js:28:336

Node.js v20.9.0
`

Error?

Error: ENOENT: no such file or directory, open 'C:\Users\Downloads\bloxflip-autocrash-main\bloxflip-autocrash-main\bloxflip-autocrash\config.json'
at Object.openSync (node:fs:585:3)
at readFileSync (node:fs:453:35)
at file:///C:/Users//Downloads/bloxflip-autocrash-main/bloxflip-autocrash-main/bloxflip-autocrash/src/utils/config.ts:40:39
at fetchCfg (file:///C:/Users//Downloads/bloxflip-autocrash-main/bloxflip-autocrash-main/bloxflip-autocrash/src/utils/config.ts:51:10)
at file:///C:/Users//Downloads/bloxflip-autocrash-main/bloxflip-autocrash-main/bloxflip-autocrash/src/index.ts:16:11
at file:///C:/Users//Downloads/bloxflip-autocrash-main/bloxflip-autocrash-main/bloxflip-autocrash/src/index.ts:40:2
at ModuleJob.run (node:internal/modules/esm/module_job:197:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:337:24)
at async loadESM (node:internal/process/esm_loader:88:5) {
errno: -4058,
syscall: 'open',
code: 'ENOENT',
path: 'C:\Users\\Downloads\bloxflip-autocrash-main\bloxflip-autocrash-main\bloxflip-autocrash\config.json'}

Websocket closed unexpectedly

Screenshot_2

Sometimes the websocket will close unexpectedly and just never return, i've encountered on my 12th try and lost half of my robux.
How to fix or prevent?

error

[UPDATER] Unable to fetch current hash, skipping. Is git installed?
Error: Command failed: git --git-dir "C:\Users\\Downloads\bloxflip-autocrash-main\bloxflip-autocrash-main.git" show -s --format=%h
fatal: your current branch 'master' does not have any commits yet

When I do npm start run, I get an error

I downloaded the files, extracted it, and then did cd C:\Users[myUser]\Downloads\bloxflip-autocrash-main\bloxflip-autocrash-main>
After, I configured the config.json and ran it, but I got
[UPDATER] Unable to fetch current hash, skipping. Is git installed?
Error: Command failed: git --git-dir "C:\Users[myUser]\Downloads\bloxflip-autocrash-main\bloxflip-autocrash-main.git" show -s --format=%h
fatal: not a git repository: 'C:\Users[myUser]\Downloads\bloxflip-autocrash-main\bloxflip-autocrash-main.git'
Am I missing anything?

Show highest amount of tries

Show highest amount of tries in hourly analysis. Seems like a fun feature to show how close you really are to the 13 point mark

Why am I always losing

Whatever I try to do I keep losing every single bet did I mess something up in the settings or something or does it work like this?

Hangs up over 2000 games

At ~2000 games, we are stuck at Joining....
We can probably fix this by reloading the page every 1k games and continuing from there.

Linux compatibility

Linux compatibility is still on works.

A few issues I have encountered trying to run the bot in a Ubuntu 20.04 LTS system:

  • curl is being blocked by Cloudflare therefore we are not able to fetch information from API's
  • Puppeteer documentation about using it on Linux are non-existent therefore the user needing to install the dependencies for puppeteer.
  • more soon?

If you encounter more issues other than the mentioned issues above, reply with the issue down below, would love to get some feedback since this is supposed to be ran at VPS's which usually only run Linux.

Issue

Hey i've had this issue with the crash bot where it would say my username user ID balance and etc but after a few moments it would display this error: [ELEMENTS] Unable to query element: div.gameBlock.gameBet.crash_crashBet__D5Rs_ > button

May I please get a fix or a reason as to why this is happening, thanks.

[Warning] This repo is not actively maintained, use at your own risk.

Basically I barely care about Bloxflip anymore. This was just a side project I did and I had no intentions of ever maintaining it in the long-term. Ill be adding the requested features you guys have said over in the issues section but after that there is no guarantee that ill actively maintain it. Feel free to do pull requests as always, I do see it in my emails.

Failed to get user info.

Bloxflip has recently stopped using the https://rest-bf.blox.land/user API endpoint for its user info in favor for the new https://api.bloxflip.com/user API endpoint. For now, I recommend switching over to the dev branch since I have already pushed a fix for it along with other improvements and features.

How to switch to dev branch?

Within the bloxflip-autocrash folder, open a terminal and run the following commands:

  • Switch to dev branch
git checkout dev
  • Install new dependencies
npm i
  • Run the dev autocrash
npm run start

For the next version, I will be adding a Analytics page for

  • Realtime Updates
  • Graphs
  • More???

What the analytics page actually looks like:
image

Updates have been really slow for the past month since I don't really use Bloxflip anymore but this project does give me something to work on while in the summer so do expect more updates in the future! Happy gambling!

error when doing npm run start

luxkatana@DESKTOP-QEF01MR:~/autocrashblox$ npm run start

[email protected] start
rollup -c --configPlugin @rollup/plugin-typescript & node .

node:internal/modules/cjs/loader:446
throw err;
^

Error: Cannot find module '/home/luxkatana/autocrashblox/dist/index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:438:19)
at Module._findPath (node:internal/modules/cjs/loader:687:18)
at resolveMainPath (node:internal/modules/run_main:15:25)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:24)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
path: '/home/luxkatana/autocrashblox/package.json',
requestPath: '/home/luxkatana/autocrashblox'
}

Node.js v20.2.0
luxkatana@DESKTOP-QEF01MR:~/autocrashblox$ sh: 1: rollup: Permission denied

Restart the browser/tab hourly

Make the protocol restart hourly so that connection issues may be sorted out automatically.

I love this project so far.

Please verify that the package.json has a valid "main" entry when running dev branch

`npm run start

[email protected] start
node build.mjs & node .

Deleting file: ./dist/pages/index.html
Deleting folder: ./dist/pages/public
Deleting folder: ./dist/pages
Deleting folder: ./dist
node:internal/process/esm_loader:97
internalBinding('errors').triggerUncaughtException(
^

[Error: ENOENT: no such file or directory, scandir 'C:\Users\mjc40\3D Objects\bf\bloxflip-autocrash\src\backend\pages\public'] {
errno: -4058,
code: 'ENOENT',
syscall: 'scandir',
path: 'C:\Users\mjc40\3D Objects\bf\bloxflip-autocrash\src\backend\pages\public'
}

Node.js v18.16.0
node:internal/modules/cjs/loader:444
throw err;
^

Error: Cannot find module 'C:\Users\mjc40\3D Objects\bf\bloxflip-autocrash\dist\index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:436:19)
at Module._findPath (node:internal/modules/cjs/loader:678:18)
at resolveMainPath (node:internal/modules/run_main:19:25)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:75:24)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
path: 'C:\Users\mjc40\3D Objects\bf\bloxflip-autocrash\package.json',
requestPath: 'C:\Users\mjc40\3D Objects\bf\bloxflip-autocrash'
}

Node.js v18.16.0`

Error

Upon trying to install this I get the following error:
C:\Users\Piano\Downloads\bloxflip-autocrash-dev\bloxflip-autocrash-dev\node_modules\json5\lib\parse.js:1083
const err = new SyntaxError(message)
^
SyntaxError: JSON5: invalid character '"' at 6:9
at syntaxError (C:\Users\Piano\Downloads\bloxflip-autocrash-dev\bloxflip-autocrash-dev\node_modules\json5\lib\parse.js:1083:17)
at invalidChar (C:\Users\Piano\Downloads\bloxflip-autocrash-dev\bloxflip-autocrash-dev\node_modules\json5\lib\parse.js:1028:12)
at Object.afterPropertyValue (C:\Users\Piano\Downloads\bloxflip-autocrash-dev\bloxflip-autocrash-dev\node_modules\json5\lib\parse.js:654:15)
at Object.default (C:\Users\Piano\Downloads\bloxflip-autocrash-dev\bloxflip-autocrash-dev\node_modules\json5\lib\parse.js:146:37)
at lex (C:\Users\Piano\Downloads\bloxflip-autocrash-dev\bloxflip-autocrash-dev\node_modules\json5\lib\parse.js:78:42)
at Object.parse (C:\Users\Piano\Downloads\bloxflip-autocrash-dev\bloxflip-autocrash-dev\node_modules\json5\lib\parse.js:25:17)
at file:///C:/Users/Piano/Downloads/bloxflip-autocrash-dev/bloxflip-autocrash-dev/src/utils/config.ts:40:33
at fetchCfg (file:///C:/Users/Piano/Downloads/bloxflip-autocrash-dev/bloxflip-autocrash-dev/src/utils/config.ts:51:10)
at file:///C:/Users/Piano/Downloads/bloxflip-autocrash-dev/bloxflip-autocrash-dev/src/index.ts:16:11
at file:///C:/Users/Piano/Downloads/bloxflip-autocrash-dev/bloxflip-autocrash-dev/src/index.ts:40:2 {
lineNumber: 6,
columnNumber: 9
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.