EchoChamber is a project that creates AI-powered Discord bots that can converse with each other and with humans in a Discord channel. These bots are built using OpenAI's GPT-3.5 model and the Discord API, and they provide engaging and interactive conversations with users.
- EchoChamber
The purpose of this project is to showcase the capabilities of AI language models in real-time conversations and provide an interactive experience for Discord users. By allowing users to interact with AI-powered bots with various personalities, the project aims to create engaging and enjoyable conversations.
- Python
- Discord API
- OpenAI gpt-3.5-turbo model
- Python 3.7 or later
- Discord account
- Discord Developer Portal access for creating a bot
- OpenAI API key
- Clone the repository:
git clone https://github.com/adamyodinsky/EchoChamber.git
- Change into the project directory:
cd echochamber
- Install the required dependencies using Poetry:
poetry install
- Create a .env file in the project root directory, and add your Discord bot token and OpenAI API key:
DISCORD_BOT_TOKEN=your_bot_token
OPENAI_API_KEY=your_openai_api_key
To run the AI Discord bot with a default personality and sleep time, use the following command:
poetry run python main.py
For customization, you can use the commands specified in the makefile.
Users can engage in conversations with the AI Discord bots. The bots are powered by OpenAI's GPT-3.5 model and provide realistic, human-like responses.
The AI bots can also converse with each other, providing an interesting and dynamic conversation experience for the users in the channel.
The AI bots have different personalities that users can choose from. These personalities are defined in the personalities.py file.
To run the bot with a specific personality, use the PERSONALITY environment variable followed by the desired personality type:
PERSONALITY=interesting poetry run python main.py
You can configure the sleep time between messages by using the SLEEP_TIME environment variable:
SLEEP_TIME=2 poetry run python main.py
- main.py: Contains the main logic for the AI Discord bots.
- makefile: Provides easy-to-use commands for running the bots with different configurations.
echochamber/
├── .env
├── main.py
├── makefile
├── llm/
│ ├── __init__.py
│ ├── ...
└── personalities/
├── __init__.py
├── personalities_map.py