- An Automating python script to send message to a channel on behalf of a user with specific messages & their assigned intervals.
Caution
This bot is for educational purposes only. Use it responsibly and in accordance with Discord's Terms of Service. Do not use it for spamming or any malicious activities.

- Clone the repository:
git clone https://github.com/yashksaini-coder/auto-msg-discord
cd auto-msg-discord
- Create and activate virtual environment:
python -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
- Install dependencies:
pip install -r requirements.txt # Or use `uv pip install` if available
- Run the bot:
python bot.py
The configuration is done in the config.json
file.
Note: Make sure to configure
config.json
before running the bot.
{
"Config": [
{
"token": "your_token_here",
"channel_id": "your_channel_id_here",
"messages": [
{
"content": "Hello, this is a test message!",
"min_interval": 5,
"max_interval": 10
},
{
"content": "This is another message.",
"min_interval": 10,
"max_interval": 15
}
]
}
]
}
token
: Your user profile token. You can get it from the Authorization Headers in Chrome Tools Network tab.channel_id
: The ID of the channel where you want to send messages. You can get it by right-clicking on the channel and selecting "Copy ID" (make sure Developer Mode is enabled in Discord settings).messages
: An array of message objects. Each object contains:content
: The message content to be sent.min_interval
: The minimum interval (in seconds) between messages.max_interval
: The maximum interval (in seconds) between messages.
- The bot will send messages to the specified channel at random intervals between the
min_interval
andmax_interval
for each message. - The bot will continue to send messages until it is stopped manually.
- The bot will log the sent messages to the terminal console with proper timestamps.
Made with ☕