bd-javascript
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40479
219