🤖 Discord AI Selfbot
This is a Python-based Discord selfbot using the discord.py-self library. The selfbot automatically responds to messages that mention it’s trigger word and holds conversations using Groq API’s Llama-3, one of the highest performing models, all for completely free. You can also add your own API key for ChatGPT functionality, but this is not required. It functions as a normal Discord bot, but on a real Discord account, allowing other people to talk to it within DMs, servers and even group chats without you needing to invite a bot or add the bot to the server - making it seem like a real user to others.
There is always the slight risk of a ban when using selfbots, so make sure to use this selfbot on an account you don’t mind losing, but the risk is incredibly low and I have used it for over a year without any issues.
⚠️ Important:
I take no responsibility for any actions taken against your account for using these selfbots or how users use my open-source code.
Using this on a user account is prohibited by the Discord TOS and can lead to your account getting banned in very rare cases.
Project made by:
📸 Preview of Text Responses


Preview of Image Responses

📸 Preview of Analyse command:

Note: This analysis is based on the user’s message history and is obviously not accurate at all. It is just for fun and should not be taken seriously.
✨ Features
🤖 Commands
- pause - Pause the bot from producing AI responses
- analyse [user] - Analyze a user’s message history and provides a - gical profile
- wipe - Clears history of the bot
- ping - Shows the bot’s latency
- toggleactive [channelID] - Toggle the current channel to the list of active channels
- toggledm - Toggle if the bot should be active in DM’s or not
- togglegc - Toggle if the bot should be active in group chats or not
- ignore [user] - Stop a user from using the bot
- reload - Reloads all cogs
- prompt [prompt / clear] - View, set or clear the prompt for the AI
- restart - Restarts the entire bot
- shutdown - Shuts down the bot
⭐ Getting Started:
Step 1: Download the Selfbot
- Go to the Releases page and download the latest release for your operating system.
- Extract the files to a folder of your choice, using 7Zip or Windows Explorer.
Step 3: Getting your Discord token
- Go to Discord and login to the account you want the token of
- Press
Ctrl + Shift + I (If you are on Windows) or Cmd + Opt + I (If you are on a Mac).
- Go to the
Network tab
- Type a message in any chat, or change server
- Find one of the following headers:
"messages?limit=50", "science" or "preview" under "Name" and click on it
- Scroll down until you find
"Authorization" under "Request Headers"
- Copy the value which is your token
Step 4: Getting a Groq API key
- Go to Groq and sign up for a free account
- Get your API key, which should look like
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 (this is an example key, it isn’t real)
Step 5: Running the bot
Windows:
- Simply run “Discord AI Selfbot.exe” and follow the instructions in the console to set up the bot.
Linux:
- Open a terminal and run
chmod +x "Discord-AI-Selfbot" to make the file executable.
- Run
./"Discord-AI-Selfbot" to start the bot and follow the instructions in the console to set it up.
🛠️ Setting up the bot manually:
If you want to set up the bot manually because you don’t trust the executable or want to edit the code yourself, follow the instructions below:
Step 1: Git clone repository
git clone https://github.com/Najmul190/Discord-AI-Selfbot
Step 2: Changing directory to cloned directory
cd Discord-AI-Selfbot
Step 3: Getting your Discord token
- Go to Discord and login to the account you want the token of
- Press
Ctrl + Shift + I (If you are on Windows) or Cmd + Opt + I (If you are on a Mac).
- Go to the
Network tab
- Type a message in any chat, or change server
- Find one of the following headers:
"messages?limit=50", "science" or "preview" under "Name" and click on it
- Scroll down until you find
"Authorization" under "Request Headers"
- Copy the value which is your token
Step 4: Getting a Groq API key
- Go to Groq and sign up for a free account
- Get your API key, which should look like
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 (this is an example key, it isn’t real)
Step 5: Install all the dependencies and run the bot
Windows:
-
Simply open run.bat if you’re on Windows. This will install all pre-requisites, guide you through the process of setting up the bot and run it for you.
-
If run.bat doesn’t work, then open CMD and run cd Discord-AI-Selfbot to change directory to the bot files directory
-
Create a virtual environment by running python -m venv bot-env
-
Activate the virtual environment by running bot-env\Scripts\activate.bat
-
Run pip install -r requirements.txt to install all the dependencies
-
Fill out example.env with your own credentials and rename it to .env
-
Fill out the config.yaml file with your own settings
-
Run the bot using python3 main.py
Linux:
- If you’re on Linux, then run
cd the\bot\files\directory to change directory to the bot files directory
- Create a virtual environment by running
python3 -m venv bot-env
- Activate the virtual environment by running
source bot-env/bin/activate
- Run
pip install -r requirements.txt to install all the dependencies
- Fill out
example.env with your own credentials and rename it to .env
- Fill out the
config.yaml file with your own settings
- Run the bot using
python3 main.py
🗨️ How to talk to the bot
- To activate it in a channel use ~toggleactive channelid (channelid is optional).
- To see all commands use ~help
- Bear in mind that the bot will only respond to other accounts and not itself, including any commands.
- You must also set a trigger word within the
config.yaml, this is the word that the bot will respond to. For example, if you set the trigger word to John, people must say “Hey John, how are you today?” for the bot to respond.
💭 Changing the Personality of the bot
To change the personality of the bot and set custom instructions, simply go into the config folder and edit the default instructions in instructions.txt to whatever you want!
❤️ Donate
If you appreciate this project and want to support its development, feel free to donate by clicking this button!

评论