Comparing version 1.0.5 to 1.0.6
@@ -1,1 +0,1 @@ | ||
{"nonce":546879169021384714,"last_updated":{"seconds":1682888051,"nanos":390221000}} | ||
{"nonce":3235254321417757265,"last_updated":{"seconds":1682889406,"nanos":476376000}} |
30
index.js
@@ -5,2 +5,3 @@ const { EventEmitter } = require(`events`); | ||
antiCrash_Emit = this | ||
constructor(client, options) { | ||
@@ -10,5 +11,13 @@ super(); | ||
this.options = options; | ||
this.Time = Time; | ||
var SlashCopyRights_Time = Time; | ||
var SlashCopyRights_Client = Client; | ||
client.on(`ready`, async () => { | ||
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) { | ||
@@ -44,17 +53,4 @@ throw new ReferenceError(`> [anticrash] : discord.client() is invalid!`.red) | ||
console.log(type, promise, reason); | ||
}) | ||
} | ||
} | ||
} | ||
module.exports = antiCrash; | ||
async function ReplitKill({ Client, Time }) { | ||
// Errors | ||
if (!Client) throw new TypeError(`Provide the "Client"!`); | ||
if (!Time) console.error(`ReplitKill System : No specific time has been set, the time has been reset to 10s, which is a default`); | ||
if (Time < 5000) throw new Error('The time should be more than 5 seconds'); | ||
// Client & Time | ||
var SlashCopyRights_Time = Time; | ||
var SlashCopyRights_Client = Client; | ||
// Kill With Interval | ||
}); | ||
setInterval(async () => { | ||
@@ -66,4 +62,6 @@ if (!SlashCopyRights_Client || !SlashCopyRights_Client.user) { | ||
}, SlashCopyRights_Time || 10000); | ||
} | ||
} | ||
} | ||
module.exports = antiCrash; | ||
module.exports = { ReplitKill }; |
{ | ||
"name": "anticrash", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -83,4 +83,4 @@ # discord-anticrash | ||
- 1.0.5 | ||
- 1.0.6 | ||
- Added more Badges to the README | ||
- Added this section you are currently reading |
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
14612
62