This is a Python-based Discord selfbot using the discord.py-self
library. The selfbot automatically responds to messages that uses it's trigger word using either ChatGPT or BARD and has image generation using an external endpoint, all for completely free. It functions as a normal Discord bot, just 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.
This bot was originally Discord-AI-Chatbot by MishalHossin but was heavily edited by Najmul190 to work as a selfbot rather than a Discord bot.
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.
- Discord Selfbot: Runs on a genuine Discord account, allowing you to use it without even needing to invite a bot.
- Free LLM Model: Enjoy the powerful capabilities of this language model without spending a dime.
- Mention Recognition: The bot always responds when you mention it or say its name.
- Reply Recognition: If replied to, the bot will continue to reply to you. It's like having a conversation with a real person!
- Message Handling: The bot knows when you're replying to someone else, so it won't cause confusion. It's like having a mind reader in your server; It can also handle numerous messages at once!
- Channel-Specific Responses: Use the
~toggleactive
command to pick what channel the bot responds in. - Psychoanalysis Command: Use the
~analyse
command to analyse a mentioned user's messages and find insights on their personality. It's like having a therapist in your server! - GPT-3.5-Turbo Model: This bot runs on turbo power! Powered by the lightning-fast GPT-3.5-Turbo language model.
- Image Generation: Use the
~imagine
command to generate an ima-rom a prompt using AI. - BARD Model: Select the BARD model to start using Google's own model, which has up-to-date information and is more accurate, but cannot hold a conversation as well as ChatGPT or follow instructions.
- Secure Credential Management: Keep your credentials secure using environment variables.
- Crafted with Care: Made with lots of love and attention to detail.
- ~model [BARD / GPT] - Change the model the bot uses to generate responses
- ~wipe - Clears history of the bot
- ~ping - Shows the bot's latency
- ~toggleactive [channel] - 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 - Ignore a user from using the bot
- ~imagine [prompt] - Generate an image from a prompt
- ~styles - List all the styles available for image generation
- ~analyse @user - Analyse a user's messages to provide a personality profile
git clone https://github.com/najmul190/Discord-AI-Selfbot
cd Discord-AI-Selfbot
- Go to Discord and login to the account you want the token of
- Press
Ctrl + Shift + I
(If you are on Windows) orCmd + 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 yor token
- Go to Google's BARD website
- Click
Sign in
orTry it
- Press
Ctrl + Shift + I
(If you are on Windows) orCmd + Opt + I
(If you are on a Mac). - Go to the
Application
tab - Click on
Cookies
underStorage
on the left side - Click on
https://bard.google.com
underCookies
- Copy the value of
__Secure-1PSID
and paste it in the.env
file underBARD_COOKIE
BARD_COOKIE=BARD_COOKIE_GOES_HERE
DISCORD_TOKEN=DISCORD_TOKEN_GOES_HERE
OWNER_ID=OWNER_ID_GOES_HERE
SELFBOT_ID=ACCOUNT_ID_GOES_HERE
TRIGGER=TRIGGER_WORD
PREFIX=~
Windows:
-
Simply open
run.bat
if you're on Windows. This will install all pre-requisites and run the bot as well. -
If
run.bat
doesn't work, then runcd the\bot\files\directory
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 -
Install discord.py-self using
pip install -U discord.py-self
-
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 - Install discord.py-self using
pip install -U discord.py-self
- Run the bot using
python3 main.py
- To activate it in a channel use ~toggleactive in the channel or manually add the channel ID in
channels.txt
- 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
.env
, this is the word that the bot will respond to. For example, if you set the trigger word toJohn
, people must say "HeyJohn
, how are you today?" for the bot to respond.