Skip to content

xtdw/Discord-Friend-Dm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Mass DM Tool

A simple Node.js application that allows you to send direct messages to all your friends on Discord using a self-bot client.

Warning: Self-botting is against Discord's Terms of Service. Use this tool at your own risk. I am not responsible for any account termination or other consequences resulting from the use of this tool.

Features

  • Send direct messages to all your Discord friends
  • Automatic retry mechanism for failed messages
  • Simple configuration
  • Console logging with color-coded status messages

Prerequisites

  • Node.js (v16.9.0 or higher recommended)
  • npm (comes with Node.js)
  • A Discord account

Installation

  1. Clone or download this repository
  2. Navigate to the project directory
  3. Install dependencies:
    npm install

Configuration

  1. Rename .env.example to .env and add your Discord token:

    TOKEN=your_discord_token_here
    

    Note: Never share your token with anyone

  2. Edit config.json to set your message:

    {
        "message": "Your message here"
    }

Usage

  1. Start the application:

    npm start

    or

    node src/index.js
  2. The bot will connect to your account and start sending messages to your friends.

How It Works

  • The script connects to Discord using your token
  • It fetches your friends list
  • For each friend, it:
    1. Creates a DM channel (if one doesn't exist)
    2. Sends the configured message
    3. Waits 1.5 seconds between messages to avoid rate limiting
    4. Retries up to 5 times if a message fails to send

Rate Limiting

To avoid being rate-limited or flagged by Discord, the script includes:

  • A 1.5-second delay between messages
  • Automatic retries with backoff for failed messages

Disclaimer

This tool is for educational purposes only. Using self-bots violates Discord's Terms of Service and can result in account termination. Use this tool responsibly and at your own risk.

License

This project is for educational purposes only. Use at your own risk.

Contributing

Contributions are not currently being accepted as this is a simple educational project.

Support

For support, please open an issue on this repository.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors