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

bd-javascript

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bd-javascript - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

2

package.json

@@ -6,3 +6,3 @@ {

"name": "bd-javascript",
"version": "0.0.4",
"version": "0.0.5",
"description": "BDjavascript, like BDscript of Discord Bot Designer.",

@@ -9,0 +9,0 @@ "main": "server.js",

@@ -102,5 +102,7 @@ //const Discord = require('discord.js')

exports.$onlyIf = (condition, errorMessage, message) => {
if (!condition) {
return message.channel.send(errorMessage), process.exit()
}
try {
if (!condition) return message.channel.send(errorMessage), process.exit(0)
} catch(e) {
console.log("Error on $onlyIf\n" + e)
}
}

@@ -107,0 +109,0 @@

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