A Discord chatbot / selfbot that allows users to talk to AI powered by OpenGPT or BARD. The AI runs on a genuine Discord account, not a bot account and has image detection alongside image generation.
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.
~toggleactive
command to pick what channel the bot responds in.~analyse
command to analyse a mentioned user's messages and find insights on their personality. It's like having a therapist in your server!~imagine
command to generate an ima-rom a prompt using AI.git clone https://github.com/najmul190/Discord-AI-Selfbot
cd Discord-AI-Selfbot
Ctrl + Shift + I
(If you are on Windows) or Cmd + Opt + I
(If you are on a Mac).Network
tab"messages?limit=50"
, "science"
or "preview"
under "Name"
and click on it"Authorization"
under "Request Headers"
Sign in
or Try it
Ctrl + Shift + I
(If you are on Windows) or Cmd + Opt + I
(If you are on a Mac).Application
tabCookies
under Storage
on the left sidehttps://bard.google.com
under Cookies
__Secure-1PSID
and paste it in the .env
file under BARD_COOKIE
example.env
to .env
and put the discord token and BARD cookie. It'll look like this: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 run cd 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:
cd the\bot\files\directory
to change directory to the bot files directorypython3 -m venv bot-env
source bot-env/bin/activate
pip install -r requirements.txt
to install all the dependenciespip install -U discord.py-self
python3 main.py
channels.txt
.env
, 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.