Skip to content

Elmahfoud-Oul/Autosender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto Bump Script Steps Setup :

This script is written in Node.js and uses the discord.js-selfbot-v13 library to create a self-bot that automatically bumps a Discord server using the /disboard bump command. Self-bots are against Discord's terms of service and can lead to account suspension, so it is not recommended to use this script.

Here are the steps to run the script:

  1. Install Node.js and npm on your computer.
  2. Create a new folder and open a terminal or command prompt inside it.
  3. Run npm init and follow the prompts to create a new package.json file.
  4. Run npm install discord.js-selfbot-v13 dotenv to install the required libraries.
  5. Create a new file named index.js in the folder and paste the script into it.
  6. Create a .env file in the folder and add the following lines, replacing the placeholders with your own values:
token=your_discord_account_token
bumpChannel=your_discord_bump_channel_id
  

Your Discord account token can be obtained from the Discord Developer Portal by creating a new application and generating a bot token. Make sure to keep your token secret and never share it with anyone.

To find the ID of the bump channel, right-click on the channel in Discord and select "Copy ID".

Save the files and run node index.js in the terminal to start the bot.

Here's a breakdown of the script:

  • The first two lines import the Client class from the discord.js-selfbot-v13 library and create a new instance of it called client.
  • The third line loads environment variables from the .env file using the dotenv library.
  • The channel variable is declared but not assigned a value yet.
  • The client listens for the ready event, which is emitted when the bot has successfully logged in to Discord. When this happens, the script logs a message to the console and fetches the bump channel using the ID from the .env file. The fetched channel is then assigned to the channel variable.

    The bump() function is declared as an asynchronous function that sends the /disboard bump command to the bump channel using the sendSlash() method from discord.js-selfbot-v13. The function then logs a message to the console using console.count() and schedules another bump after a random delay between 2 and 3 hours (in milliseconds) using the setTimeout() function.

    Finally, the client logs in to Discord using the account token from the .env file using the client.login() method. Once logged in, the client listens for events and runs the appropriate functions as defined in the script.

    This Script Was Made By Dev El Mahfoud