Giter Site home page Giter Site logo

Comments (6)

prljav avatar prljav commented on August 19, 2024 1

seems like a issue on your end, my bot was running (similar use case as yours) for about 3 months with absolutely no issues

from discord.js-selfbot-v13.

xL0b0 avatar xL0b0 commented on August 19, 2024

Which version are you / were you running? A colleague of mine experienced 1:1 the same issue

from discord.js-selfbot-v13.

002-sans avatar 002-sans commented on August 19, 2024

I use the latest version and no probleme with it

from discord.js-selfbot-v13.

xL0b0 avatar xL0b0 commented on August 19, 2024

Issue is simply that it just doesn't crash or anything, it's just stuck and I have no idea how to fix it

from discord.js-selfbot-v13.

zrSadek avatar zrSadek commented on August 19, 2024

show us ur code?

from discord.js-selfbot-v13.

xL0b0 avatar xL0b0 commented on August 19, 2024
// Function to initialize and start the bot
async function startBot() {
    try {
        const client = new Client({
            restGlobalRateLimit: 50,
            sweepers: {
                messages: { interval: 60, lifetime: 60 }
            }
        });

        const eventsPath = path.join(__dirname, 'events');
        const eventFiles = fs.readdirSync(eventsPath).filter(file => file.endsWith('.js'));

        for (const file of eventFiles) {
            const filePath = path.join(eventsPath, file);
            const event = require(filePath);
            if (event.once) {
                client.once(event.name, (...args) => event.execute({ ...args, client }));
            } else {
                client.on(event.name, (...args) => event.execute({ ...args, client }));
            }
        }

        await client.login(global.config.token);
    } catch (error) {
        console.log(error)
    }
}
async function main() {
    await startBot();
}

// Start the bot
main();

My main index.js code

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.