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.
- Install Node.js and npm on your computer.
- Create a new folder and open a terminal or command prompt inside it.
- Run
npm init
and follow the prompts to create a newpackage.json
file. - Run
npm install discord.js-selfbot-v13 dotenv
to install the required libraries. - Create a new file named
index.js
in the folder and paste the script into it. - 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.
- 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 thechannel
variable.The
bump()
function is declared as an asynchronous function that sends the/disboard bump
command to the bump channel using thesendSlash()
method from discord.js-selfbot-v13. The function then logs a message to the console usingconsole.count()
and schedules another bump after a random delay between 2 and 3 hours (in milliseconds) using thesetTimeout()
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.