Closed aiko-chan-ai closed 2 years ago
How to use messageCreate inside multiple selfbot
How to use messageCreate inside multiple selfbot select selfbot (id)
const selfbot_no_1 = client.selfBot.get('selfbotId') selfbot_no_1.on("messageCreate", (msg) => { if(msg.content == 'ping') msg.reply('pong') })
How to use messageCreate inside multiple selfbot select selfbot (id)
const selfbot_no_1 = client.selfBot.get('selfbotId') selfbot_no_1.on("messageCreate", (msg) => { if(msg.content == 'ping') msg.reply('pong') })
how do you use select id not to cause continuous massages
@aiko-chan-ai does it mean I cannot create self bot client multiple times? can I just put selfbot clients to an array and use as normal
can I just put selfbot clients to an array and use as normal
yep
can I just put selfbot clients to an array and use as normal
yep
ty for the quick response, i'm on a nextjs server, I don't quite understand how login method works. So every API request to my nextjs server will have to login the selfbot again or something else?
ty for the quick response, i'm on a nextjs server, I don't quite understand how login method works. So every API request to my nextjs server will have to login the selfbot again or something else?
wdym?
ty for the quick response, i'm on a nextjs server, I don't quite understand how login method works. So every API request to my nextjs server will have to login the selfbot again or something else?
wdym?
nvm I found that I can do something like this:
const client = new Client({
// See other options here
// https://discordjs-self-v13.netlify.app/#/docs/docs/main/typedef/ClientOptions
// All partials are loaded automatically
captchaService: "2captcha",
captchaKey: process.env.CAPTCHA_KEY,
});
client.token = authToken;
return client;
to not use the ws gateway
Code example
Use 1 bot to manage all selfbots If you have any suggestions, discussions or questions, please comment here