GPT-Buddy is a Discord bot powered by OpenAI's ChatGPT. The bot listens to user prompts and responds with creative and funny answers. GPT-Buddy can also perform a variety of imaginary actions for entertainment purposes.
- Responds to user prompts with creative answers
- Performs a variety of imaginary actions, such as:
- tap_dance_on_grapes
- whistle_underwater
- paint_invisible_portrait
- juggle_invisible_fruits
- mime_stuck_in_box
- sing_gibberish
- do_the_robot
- tell_a_useless_fact
- Python 3.6 or higher
- Discord account and bot token
- OpenAI API key
- Clone the repository: `
git clone https://github.com/yoieh/GPT-Buddy.git
- Change directory to the project folder:
cd GPT-Buddy
- Create a virtual environment:
python -m venv bot-env
- Activate the virtual environment:
- On Windows:
bot-env\Scripts\activate
- On macOS/Linux:
source bot-env/bin/activate
- Install the required packages:
pip install -r requirements.txt
- Create a
.env
file in the project folder with the following content:
OPENAI_API_KEY=<your_openai_api_key>
DISCORD_BOT_TOKEN=<your_discord_bot_token>
- Replace
<your_openai_api_key>
and<your_discord_bot_token>
with your OpenAI API key and Discord bot token, respectively.
- Run the bot:
python gpt_buddy.py
-
Add the bot to your Discord server.
-
Start chatting with GPT-Buddy by using the
!ask
command:
!ask <your_prompt>
For example:
!ask tell me a joke
This project is released under the MIT License.