A simple Python script to send multiple messages to a Discord channel using Discord's API.
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.
main.py
- The main script that handles message sendingconfig.json
- Configuration file for your settings
- Clone this repository
- Modify the existing
config.json
with your settings - Run the script
{
"token": "YOUR_TOKEN_HERE",
"channelId": "YOUR_CHANNEL_ID_HERE",
"message": "YOUR_MESSAGE_HERE",
"message_count": 50,
"delay_seconds": 1
}
token
: Your Discord authorization tokenchannelId
: The ID of the channel where messages will be sentmessage
: The message content to sendmessage_count
: Number of messages to send (default: 50)delay_seconds
: Delay between messages in seconds (default: 1)
- Open Discord in your web browser
- Press F12 to open Developer Tools
- Go to the Network tab
- Look for requests to Discord's API
- Find your authorization token in the request headers
- Copy the token without the "Bot" prefix
- Enable Developer Mode in Discord (User Settings > App Settings > Advanced > Developer Mode)
- Right-click on the target channel
- Click "Copy ID"
- Make sure Python is installed on your system
- Edit
config.json
with your settings - Run the script:
python main.py
- Configurable message count
- Adjustable delay between messages
- Error handling for failed requests
- Progress tracking for sent messages
- Python 3.6 or higher
http.client
(built-in)json
(built-in)time
(built-in)
- 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
Misuse of this tool may violate Discord's Terms of Service. Use responsibly and at your own risk.