⭐️ A star would be highly appreciated
In the requirments.txt
revChatGPT==0.0.a42
The server and client must use the same IP address. Use your server as a self-hosted VPN if necessary
In the requirments.txt
revChatGPT==0.0.38.8
/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 to your server via OAuth2 URL Generator
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
from cookies and paste it intoconfig.json
undersession_token
-
Find your
cf_clearance
from cookies and paste it intoconfig.json
undercf_clearance
Warning
Cloudflare
cf_clearance
have a 2-hour expiration, so you will need to manually log in and retrieve it periodically for nowCurrently solving this issue
-
Get your
user-agent
from network and paste it intoconfig.json
underuser-agent
Network > Headers > Request Headers >
User-Agent
-
It should be look like this
- Open a terminal or command prompt
- Navigate to the directory where you installed the ChatGPT Discord bot
- Run
python3 main.py
to start the bot
-
Build the Docker image
docker build -t chatgpt-discord-bot --platform linux/amd64 .
-
Run the Docker container
docker run --platform linux/amd64 -d chatgpt-discord-bot
docker ps
to see the list of running servicesdocker stop <BOT CONTAINER ID>
to stop the running bot
- A starting prompt would be invoked when the bot is first started or reset
- You can set it up by modifying the content in
starting-prompt.txt
- All the text in the file will be fired as a prompt to the bot