Skip to content

kimmyxpow/discord-message-sender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Discord Message Sender

A simple Python script to send multiple messages to a Discord channel using Discord's API.

⚠️ Security Warning

NEVER share your Discord authorization token with anyone! Your token provides full access to your Discord account. Anyone with your token can:

  • Access your account
  • Send messages as you
  • Join servers
  • Read your messages
  • Perform any action that you can do

Keep your token secure and never commit it to any public repositories.

Files

  • main.py - The main script that handles message sending
  • config.json - Configuration file for your settings

Setup

  1. Clone this repository
  2. Modify the existing config.json with your settings
  3. Run the script

Config Structure

{
  "token": "YOUR_TOKEN_HERE",
  "channelId": "YOUR_CHANNEL_ID_HERE",
  "message": "YOUR_MESSAGE_HERE",
  "message_count": 50,
  "delay_seconds": 1
}

Configuration Details

  • token: Your Discord authorization token
  • channelId: The ID of the channel where messages will be sent
  • message: The message content to send
  • message_count: Number of messages to send (default: 50)
  • delay_seconds: Delay between messages in seconds (default: 1)

How to Get Your Discord Token

  1. Open Discord in your web browser
  2. Press F12 to open Developer Tools
  3. Go to the Network tab
  4. Look for requests to Discord's API
  5. Find your authorization token in the request headers
  6. Copy the token without the "Bot" prefix

How to Get Channel ID

  1. Enable Developer Mode in Discord (User Settings > App Settings > Advanced > Developer Mode)
  2. Right-click on the target channel
  3. Click "Copy ID"

Usage

  1. Make sure Python is installed on your system
  2. Edit config.json with your settings
  3. Run the script:
python main.py

Features

  • Configurable message count
  • Adjustable delay between messages
  • Error handling for failed requests
  • Progress tracking for sent messages

Requirements

  • Python 3.6 or higher
  • http.client (built-in)
  • json (built-in)
  • time (built-in)

Notes

  • Be mindful of Discord's rate limits
  • Excessive message sending might trigger Discord's anti-spam measures
  • Always test with a small message count first

Disclaimer

Misuse of this tool may violate Discord's Terms of Service. Use responsibly and at your own risk.

About

A simple Python script to send multiple messages to a Discord channel using Discord's API.

Topics

Resources

License

Stars

Watchers

Forks

Languages