This Python script allows you to send messages to a Discord channel using the Discord API. It reads messages from a file and sends them to the specified channel with customizable delays.
Before using the script, make sure you have the following:
- Python 3.x installed
- Required Python packages:
requests
pip install requests
-
Clone the repository or download the script.
-
Open the script in a text editor and configure the following variables:
channel_id
: Replace with the Discord channel ID where you want to send messages.authorization
: Replace with your Discord bot authentication token.message_file
: Provide the path to the file containing the messages you want to send.num_messages
: Set the number of messages to send (use 0 for an infinite loop).line_delay
: Set the delay between lines (in seconds).message_interval
: Set the interval between messages (in seconds).delete_after_send
: Set toTrue
if you want sent messages to be automatically deleted,False
otherwise.
-
Save the script after making the necessary changes.
-
Run the script:
python discord_message_sender.py
python discord_message_sender.py
- This script uses the
requests
library to interact with the Discord API. - Ensure your Discord account/bot has the necessary permissions to send messages in the specified channel.
- This script runs 100% on your local computer
- Never share your authentication token with anyone. Treat it like a password.
This project is licensed under the MIT License.