aiko-chan-ai / discord.js-selfbot-v13

An unofficial discord.js fork for creating selfbots

Home Page:https://discordjs-self-v13.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

help me

lordfudgetart opened this issue · comments

Which package has the bugs?

The core library

Issue description

User
(node:12820) DeprecationWarning: Intents is not available.
(Use node --trace-deprecation ... to show where the warning was created)
^C
@lordfudgetart ➜ /workspaces/burgerking99221/bot (main) $ node --trace-deprecation nig.js
(node:13157) DeprecationWarning: Intents is not available.
at new BaseClient (/workspaces/burgerking99221/bot/node_modules/discord.js-selfbot-v13/src/client/BaseClient.js:18:15)
at new Client (/workspaces/burgerking99221/bot/node_modules/discord.js-selfbot-v13/src/client/Client.js:48:5)
at Object. (/workspaces/burgerking99221/bot/nig.js:3:16)
at Module._compile (node:internal/modules/cjs/loader:1369:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
at Module.load (node:internal/modules/cjs/loader:1206:32)
at Module._load (node:internal/modules/cjs/loader:1022:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49

Code sample

const { Client, Intents } = require('discord.js-selfbot-v13');

const client = new Client({
    intents: [
        Intents.FLAGS.GUILDS,
        Intents.FLAGS.GUILD_MESSAGES
    ]
});

const targetServerId = '1204307067809173554'; // Replace with your server ID
const targetChannelId = '1213660529457897502'; // Replace with your channel ID
const mainServerId = '1201698278534828032'; // Replace with the ID of the main server to monitor

client.on('messageCreate', async (message) => {
    if (message.guild.id !== mainServerId) return; // Check if the message is from the main server

    const regex = /(\w+):(\w+)/g; // Regular expression to match username:password format
    const matches = message.content.matchAll(regex);

    const targetServer = client.guilds.cache.get(targetServerId);
    if (!targetServer) return console.error('Server not found.');

    const targetChannel = targetServer.channels.cache.get(targetChannelId);
    if (!targetChannel) return console.error('Channel not found.');

    for (const match of matches) {
        const username = match[1];
        const password = match[2];

        // Post the username:password in the target channel
        targetChannel.send(`Found new account: ${username}:${password}`);
    }
});

client.login('REDACTED');

Package version

discord.js-selfbot-v13": "^3.1.4"

Node.js version

20.12.1

Operating system

Ubuntu 20.04.6 LTS

Priority this issue should have

High (immediate attention needed)

Checklist

  • I have searched the open issues for duplicates.
  • I have shared the entire traceback.
  • I am using a user token (and it isn't visible in the code).

Additional Information

No response

User accounts don't need to specify intents

thank you