A Discord bot for sending a large number of direct messages to someone and trolling your friends.
This project is written in Python and Golang (for speed and efficiency). 🚀
If you want to run it yourself, you can follow the steps below: 👇
Start by cloning the project repository: 📂
git clone https://github.com/M-logique/DM-Spammer-Bot
(Or download the ZIP file from GitHub. 📦)
Navigate to the project directory: 🏃♂️
cd DM-Spammer-Bot
Fill in the .env
file with the required environment variables and paste your tokens into the tokens.txt
file. 📝
Install Docker by following the instructions in the official Docker documentation.
To start the project using Docker Compose, run:
docker compose up -d
- It's recommended to use a virtual environment (
venv
) to manage dependencies.
Setting up a virtual environment:
python3 -m venv .venv
Activate the virtual environment:
For Linux/macOS: 🐧🍏
source .venv/bin/activate
or
.venv/bin/activate
For Windows: 🪟
.\.venv\Scripts\activate
Install the required Python packages using pip
: 🧰
python3 -m pip install -r requirements.txt
Run the application by executing the main Python script:
python3 main.py
Since the bot uses shared files that are already compiled, some users may prefer not to use these precompiled files for personal or security reasons. 🔒
- If you wish, you can build the
spammer.so
file yourself using the following steps:
Install Go (Golang) by following the instructions in the official Go documentation.
Ensure that gcc
(GNU Compiler Collection) is installed on your system. Follow the instructions below based on your operating system:
-
For Debian/Ubuntu-based systems: 🐧
sudo apt-get install gcc
-
For Red Hat/CentOS-based systems: 🐧
sudo yum install gcc
-
For macOS: 🍏
xcode-select --install
-
For Windows: 🪟 You can install
gcc
on Windows by installing MinGW-w64, which provides a GCC toolchain for Windows.- Visit the MinGW-w64 downloads page.
- Download the appropriate installer (e.g.,
mingw-w64-install.exe
). - Run the installer and select the architecture (32-bit or 64-bit) and version of GCC you want to install.
- Follow the installation instructions, and add the
bin
directory of MinGW to your system'sPATH
environment variable. For example,C:\Program Files\mingw-w64\bin
.
To verify that
gcc
is installed correctly, open a Command Prompt and run:gcc --version
Move to the Go source directory within the project:
cd DM-Spammer-Bot/go_spammer
Compile the Go code into a shared object file (spammer.so
). This file will be placed in the shared
directory of the project. Run the following command:
go build -o ../shared/spammer.so -buildmode=c-shared main.go
-
Make sure your Go environment is properly set up. You can verify this by running
go version
to check if Go is correctly installed and available in your system'sPATH
. -
The
-buildmode=c-shared
flag is used to generate a shared object file that can be loaded and used by other programming languages such as Python. 🐍 -
After building, you can verify that the new
spammer.so
file is created in theshared
directory. The bot will now use this freshly built file instead of the precompiled one. ✔️
This bot is intended for educational and testing purposes only. Misusing this tool to spam or harass others is against Discord's Terms of Service and could result in your account being banned. 🚫 Use it responsibly! 🙏