Comparing version 1.0.7 to 1.0.8
@@ -1,1 +0,1 @@ | ||
{"nonce":2383541616068848800,"last_updated":{"seconds":1682889635,"nanos":37905000}} | ||
{"nonce":8227193093898104453,"last_updated":{"seconds":1682890204,"nanos":107423000}} |
12
index.js
@@ -11,4 +11,3 @@ const { EventEmitter } = require(`events`); | ||
var SlashCopyRights_Time = Time; | ||
var SlashCopyRights_Client = Client; | ||
@@ -18,6 +17,3 @@ | ||
console.log(`> [anticrash loaded]`.green) | ||
if (!Time) { throw new ReferenceError(`ReplitKill System : No specific time has been set, the time has been reset to 10s, which is a default`.red) | ||
} else | ||
if (Time < 5000) { throw new ReferenceError('The time should be more than 5 seconds'.red) | ||
} else | ||
if (!client) { | ||
@@ -56,7 +52,7 @@ throw new ReferenceError(`> [anticrash] : discord.client() is invalid!`.red) | ||
setInterval(async () => { | ||
if (!SlashCopyRights_Client || !SlashCopyRights_Client.user) { | ||
if (!client || !client.user) { | ||
process.kill(1); | ||
console.log('#Client Not Login, Process Kill'); | ||
} else return; | ||
}, SlashCopyRights_Time || 10000); | ||
}, 10000); | ||
} | ||
@@ -63,0 +59,0 @@ } |
{ | ||
"name": "anticrash", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
14167
55