Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hubot-bustabit

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hubot-bustabit - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

12

bustabit_script.js

@@ -10,3 +10,3 @@ // When you log in to bustabit.com select the "AUTO" tab, then at the

const USER = engine.getUsername();
var won = false; // Keep track of whether we won or lost.
var won; // Keep track of whether we won or lost.

@@ -30,4 +30,4 @@ // Update the server with game information.

// User won.
engine.on('cashed_out', function(resp) {
if(resp.username === USER) {
engine.on('cashed_out', function(data) {
if(data.username === USER) {
won = true;

@@ -43,7 +43,7 @@ updateServer('win=true&balance='+engine.getBalance())

xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
bet = JSON.parse(this.responseText);
if(this.readyState === 4 && this.status === 200) {
let bet = JSON.parse(this.responseText);
if(bet.size) {
engine.placeBet(bet.size*100, parseInt(bet.ratio*100), false);
won = false;
engine.placeBet(bet.size*100, parseInt(bet.ratio*100), false)
}

@@ -50,0 +50,0 @@ }

@@ -50,3 +50,3 @@ {

},
"version": "1.1.0"
"version": "1.2.0"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc