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

bot-utilities

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bot-utilities - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

test/commands.js

10

bot-utilities.js
'use strict';
var exit = require('exit');
exports.exit = require('exit');
var _ = require('lodash');

@@ -54,9 +54,7 @@

exports.randomCommand = function (command) {
exports.randomCommand = function (command, percentage) {
return function (options) {
if (options.random) {
if (_.percentChance(98)) {
console.log('Skipping...');
exit(0);
if (_.percentChance(percentage || 98)) {
return exports.exit(0);
}

@@ -63,0 +61,0 @@ }

2

package.json
{
"name": "bot-utilities",
"version": "2.3.0",
"version": "2.4.0",
"description": "Utilities for Twitter bots.",

@@ -5,0 +5,0 @@ "main": "bot-utilities.js",

Sorry, the diff of this file is not supported yet

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