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

anticrash

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

anticrash - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

.cache/replit/__replit_disk_meta.json

@@ -1,1 +0,1 @@

{"nonce":546879169021384714,"last_updated":{"seconds":1682888051,"nanos":390221000}}
{"nonce":3235254321417757265,"last_updated":{"seconds":1682889406,"nanos":476376000}}

@@ -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
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