Skip to content

An Automating python script to send message to a channel on behalf of a user with specific messages & their assigned intervals.

Notifications You must be signed in to change notification settings

yashksaini-coder/Auto-MSG-Discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto message 🤖 wakatime

  • 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.

Auto Message Discord Bot

Usage 🚀

  1. Clone the repository:
git clone https://github.com/yashksaini-coder/auto-msg-discord
cd auto-msg-discord
  1. Create and activate virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
  1. Install dependencies:
pip install -r requirements.txt  # Or use `uv pip install` if available
  1. Run the bot:
python bot.py

Configuration ⚙️

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
        }
      ]
    }
  ]
}

Configuration Fields

  • 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.

Workflow 🔄

  • The bot will send messages to the specified channel at random intervals between the min_interval and max_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.

Developers 👨‍💻


Yash K. Saini

(Author)

👋 Hi there! I'm Yash K. Saini, a self-taught software developer and a computer science student from India.

  • I love building & contributing to Open Source software solutions & projects that help solve real-world problems.
  • I want to build products & systems that can benefit & solve problems for many other DEVs.

Made with ☕

About

An Automating python script to send message to a channel on behalf of a user with specific messages & their assigned intervals.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages