-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathantiDetection.js
More file actions
31 lines (26 loc) · 1.08 KB
/
Copy pathantiDetection.js
File metadata and controls
31 lines (26 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const config = require('./config.js');
const token = config.token;
const channelid = config.channelId;
const { Client, version } = require('discord.js-selfbot-v13');
const client = new Client();
const fishbotId = '574652751745777665';
client.once('ready', async () => {
console.log(`Started anti detection on ${client.user.username}`);
})
client.on('messageCreate', message => {
if (message.webhookId && message.applicationId == fishbotId) {
if (message.embeds.length > 0) {
message.embeds.forEach(embed => {
if (embed.description) {
const codeMatch = embed.description.match(/Code: \*\*(\w+)\*\*/);
if (codeMatch) {
verificationCode = codeMatch[1];
console.log(`Anti-Bot detection has occurred. Found Verification Code: ${verificationCode}`);
client.channels.cache.get(channelid).sendSlash(fishbotId, 'verify', verificationCode)
}
}
});
}
}
});
client.login(token);