A discord bot for interact with ChatGPT
- Clone repository
git clone https://github.com/MrlolDev/chatgpt-discord-bot.git
-
Create supabase project
-
Create supabase tables
-
Upload open ai accounts
-
Install dependencies
npm install
- Create .env
TOKEN=Your discord bot token https://discord.dev
CLIENT_ID=Your discord bot id https://discord.dev
SUPABASE_KEY=Your supabase service role key https://app.supabase.com
SUPABASE_URL=Your supabase project url https://app.supabase.com
NOPECHA_KEY=Your nopecha key https://nopecha.com
- Run the bot
npm start
- Running with auto reload(development mode)
npm run dev
- Updating code with changes.
npm run git
- Go to https://chat.openai.com/chat
- Log in to your account
- Open developer tools
- Go to the application section
- Go to the cookies section
- And get your session token which is the cookie with the name: "__Secure-next-auth.session-token"
- Chat command with ChatGPT response. --> 0.0.2
- Conversations support(the bot have context from the previous messages). --> 0.0.3
- Bot command(get information about the bot and the ping bot). --> 0.0.3
- Feedback command(allow people to send feedback). --> 0.0.4
- Auto refresh session token --> 0.0.5
- Includes user message in chat command. --> 0.0.6
- Solve ChatGPT issues --> 0.0.6
- Limits to 1 conversation per channel. --> 0.0.6
- Host on vps server --> 0.0.7
- Allow private conversations --> 0.0.9
- Embeds --> 0.0.9
- Top.gg rewards --> Future
- Partials responses during loading --> Future
- Uptime Robot alerts --> Future