A shared AI teammate for your Discord server
The goal of this project is to build an AI participant in a group chatroom. Like human user, this AI bot sits quietly in the chat, listens to the context, and give responds intelligently when mentioned.
I've been working on several projects with ChatGPT, as if I was doing a team project with ChatGPT. But imagine working on a real team project: each teammate using their own ChatGPT would make it tedious to share context, update each other, and preserve creative ideas.
GroupChatGPT solves this by acting as a shared AI teammate within your Discord server. It listens to conversations (while respecting private cues) and contributes with context-aware responses when mentioned. It can also be a playful companion among friends — like the magic mirror in Snow White — offering insights or facts mid-conversation.
Basically, it is going to be like using ChatGPT with your friends.
- Connected to OpenAI GPT - 4.1
- Listens to the mentions, read & replies only when mentioned
- Provides context-aware responses via lexical RAG
- Respects private messages with
//pssprefix
-
Click the link below to install GroupChatGPT in your discord server https://discord.com/oauth2/authorize?client_id=1358609232903274698&scope=bot&permisions=274877983744
-
To get response from GroupChatGPT, mention
@GroupChatGPT(other mentions like@everyone,@here, or#channelwill not invoke response.).

-
To hide a message or following part within a message from GroupChatGPT, use
//pssprefix.

*Note* messages deleted or edited before mentioning @GroupChatGPT will not be seen to GroupChatGPT
Installation guide
- Clone this repo
git clone https://github.com/luanakwon/GroupChatGPT.git
- Install python3 and create virtual environment
~$ sudo apt install python3 python3-pip python3.12-venv ~$ cd GroupChatGPT ~/GroupChatGPT$ python3 -m venv .venv
- Inside venv, install
requirements.txtRequirements :~/GroupChatGPT$ source .venv/bin/activate (.venv) ~/GroupChatGPT$ pip3 install -r requirements.txt
- python 3.12.10 (< I am using this version but I'm not sure from what above)
- discord.py
- openai
- python-dotenv
- discord token and openai api key
- Create
GroupChatGPT/.envas belowDISCORD_TOKEN=YOUR_DISCORD_TOKEN_HERE OPENAI_API_KEY=YOUR_OPENAI_API_KEY_HERE~/GroupChatGPT$ nano .env # create .env as above
- Run bot.main from /GroupChatGPT/
(.venv) ~/GroupChatGPT$ python3 -m bot.main
This project is licensed under the MIT License.
