Giter Site home page Giter Site logo

Comments (8)

FongsiDev avatar FongsiDev commented on July 19, 2024 5

do you have servers?I want to join ✌️

from discord.js-selfbot-v13.

aiko-chan-ai avatar aiko-chan-ai commented on July 19, 2024

Issue description

I've tried using my second account to join server and leave server but no response on guildMemberAdd and guildMemberRemove events

Code sample

module.exports = (client) => {
  client.on("guildMemberAdd", async (member) => {
    console.log(member)
    if (!member.guild) return;
    const data = global.db.get(`welcome_${member.guild.id}`);
    try {
      var backgroundArray = [
        `https://cdn.discordapp.com/attachments/907875631000334346/910117742533820436/wp4694506-pixels-art-wallpapers.jpg`,
        `https://cdn.discordapp.com/attachments/907875631000334346/910146026382430249/v2cmfx8rbdv11.jpg`,
        `https://cdn.discordapp.com/attachments/907875631000334346/910149891873972254/LVtDUQX.jpg`,
        `https://cdn.discordapp.com/attachments/907875631000334346/910146033953177610/720499.jpg`,
        `https://cdn.discordapp.com/attachments/907875631000334346/910146952803524648/chillin-fox-wallpaper_1.jpg`,
      ];
      let card = new global.card()
        .setAvatar(member.user.avatarURL({ format: "png" }))
        .setUsername(member.user.username)
        .setDiscriminator(member.user.discriminator)
        .setBackground(
          `${
            backgroundArray[Math.floor(Math.random() * backgroundArray.length)]
          }`
        )
        .setCount(member.guild.memberCount)
        .img();
      const channel = await client.resolveChannel(data.channel);
      if (!channel) return;

      if (data.image) {
        const attachment = new client.Discord.MessageAttachment(
          await client.getBuffer(card),
          `welcome-${member.id}.jpg`
        );
        return client
          .sendhook(
            data.msg
              .replace(/<@>/g, `${member}`)
              .replace(/<server>/g, `${member.guild.name}`)
              .replace(/<count>/g, `${member.guild.memberCount}`),
            {
              channel: channel.id,
              files: [attachment],
            }
          )
      } else {
        return client
          .sendhook(
            data.msg
              .replace(/<@>/g, `${member}`)
              .replace(/<server>/g, `${member.guild.name}`)
              .replace(/<count>/g, `${member.guild.memberCount}`),
            {
              channel: channel.id,
            }
          )
      }
    } catch (e) {
      console.log(e);
    }
  });
};

Package version

1.4.4-dev.fc7f02e

Node.js version

16+

Operating system

Termux

Priority this issue should have

Medium (should be fixed soon)

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

Tell me are the events guildMemberAdd or something else?

  • How many members does your server have?
  • Your acc clone is online (idle, dnd) status?

from discord.js-selfbot-v13.

aiko-chan-ai avatar aiko-chan-ai commented on July 19, 2024

if your server is too big, i'm not sure the event will work

from discord.js-selfbot-v13.

FongsiDev avatar FongsiDev commented on July 19, 2024

the server is small._
Yesterday I was able to send but after I updated to the version ^1.4.4-dev.fc7f02e
not working anymore

from discord.js-selfbot-v13.

aiko-chan-ai avatar aiko-chan-ai commented on July 19, 2024

the server is small._ Yesterday I was able to send but after I updated to the version ^1.4.4-dev.fc7f02e not working anymore

Have you updated to the latest version?
Current is v2.0.0

from discord.js-selfbot-v13.

FongsiDev avatar FongsiDev commented on July 19, 2024

the server is small._ Yesterday I was able to send but after I updated to the version ^1.4.4-dev.fc7f02e not working anymore

Have you updated to the latest version? Current is v2.0.0

not yet
still version ^1.4.4-dev.fc7f02e

from discord.js-selfbot-v13.

aiko-chan-ai avatar aiko-chan-ai commented on July 19, 2024

the server is small._ Yesterday I was able to send but after I updated to the version ^1.4.4-dev.fc7f02e not working anymore

Have you updated to the latest version? Current is v2.0.0

not yet still version ^1.4.4-dev.fc7f02e

User accounts receive events (like bots) very poorly. But if error from module, I will check again
And you should also update to the latest version

from discord.js-selfbot-v13.

FongsiDev avatar FongsiDev commented on July 19, 2024

Ok

from discord.js-selfbot-v13.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.