diff --git a/package.json b/package.json index ce41ee9..cf64d33 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "discord.js-selfbot-v13", - "version": "1.4.0", + "version": "1.4.01", "description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]", "main": "./src/index.js", "types": "./typings/index.d.ts", diff --git a/src/util/RemoteAuth.js b/src/util/RemoteAuth.js index 37d4a34..382fc32 100644 --- a/src/util/RemoteAuth.js +++ b/src/util/RemoteAuth.js @@ -3,7 +3,6 @@ const { Buffer } = require('buffer'); const crypto = require('crypto'); const { setInterval, clearInterval, setTimeout, clearTimeout } = require('node:timers'); -const { process } = require('process'); const { StringDecoder } = require('string_decoder'); const { encode: urlsafe_b64encode } = require('safe-base64'); const WebSocket = require('ws'); @@ -148,7 +147,7 @@ class DiscordAuthWebsocket { if (this.debug) { console.log(`[WebSocket] Connection Destroyed, User login state: ${this.login_state ? 'success' : 'failure'}`); } - if (!this.login_state) process.exit(1); + if (!this.login_state) throw new Error('Login failed'); } public_key() {