This Python script generates random Discord gift codes and sends them to a specified Discord webhook. The script continuously generates codes and posts them at regular intervals. It's perfect for testing webhooks or automating the process of sending random codes.
- Python 3.x
requestslibrary (can be installed viapip install requests)
-
Clone or download the repository to your local machine.
-
Install dependencies by running:
pip install requests
-
Set up your webhook URL:
- Go to Discord > Server Settings > Webhooks.
- Copy the webhook URL.
-
Launch the script:
- Run the
.batfile to execute the Python script.
Or you can run the Python script directly:
python main.py
- Run the
-
Enter the Discord webhook URL when prompted. The script will start generating and sending gift codes to your webhook every 3 seconds.
-
To stop the script, press
CTRL+C.