⭐️ A star would be highly appreciated
/chat [message]
Chat with ChatGPT!/private
ChatGPT switch to private mode/public
ChatGPT switch to public mode/reset
ChatGPT conversation history will be erased
-
public mode (default)
the bot directly reply on the channel -
private mode
the bot's reply can only be seen by who use the command
pip install -r requirements.txt
dependencies: Reverse Engineered ChatGPT by OpenAI here and discord.py
-
Go to https://discord.com/developers/applications create an application
-
Build a Discord bot under the application
-
Get the token from bot setting
-
Store the token to
config.json
under thediscord_bot_token
-
Turn MESSAGE CONTENT INTENT
ON
-
Invite your bot through OAuth2 URL Generator
Save both in config.json
Warning
If you are logging in with a Google or Microsoft account, please use the session token method below.
Go to https://chat.openai.com/chat log in
-
Open console with
F12
-
Open
Application
tab > Cookies -
Copy the value for
__Secure-next-auth.session-token
and paste it intoconfig.json
undersession_token
. You do not need to fill outemail
andpassword
- Open a terminal or command prompt
- Navigate to the directory where you installed the ChatGPT Discord bot
- Run
python main.py
to start the bot