{"id":25019515,"url":"https://github.com/ernestaroozoo/gpt-discord-chatbot","last_synced_at":"2025-04-28T14:02:22.080Z","repository":{"id":159565425,"uuid":"598427311","full_name":"ErnestAroozoo/GPT-Discord-Chatbot","owner":"ErnestAroozoo","description":"Discord chatbot powered by OpenAI and ElevenLabs that enables natural and engaging conversations with users in text and voice.","archived":false,"fork":false,"pushed_at":"2023-05-01T02:02:43.000Z","size":260,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T10:11:27.434Z","etag":null,"topics":["chatbot","discord","discord-bot","elevenlabs","gpt-3","openai","python","speech-recognition","text-to-speech"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ErnestAroozoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-07T04:39:42.000Z","updated_at":"2024-07-16T09:31:46.000Z","dependencies_parsed_at":"2023-08-31T08:00:24.933Z","dependency_job_id":null,"html_url":"https://github.com/ErnestAroozoo/GPT-Discord-Chatbot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErnestAroozoo%2FGPT-Discord-Chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErnestAroozoo%2FGPT-Discord-Chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErnestAroozoo%2FGPT-Discord-Chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErnestAroozoo%2FGPT-Discord-Chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ErnestAroozoo","download_url":"https://codeload.github.com/ErnestAroozoo/GPT-Discord-Chatbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251326794,"owners_count":21571632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatbot","discord","discord-bot","elevenlabs","gpt-3","openai","python","speech-recognition","text-to-speech"],"created_at":"2025-02-05T11:50:53.286Z","updated_at":"2025-04-28T14:02:21.905Z","avatar_url":"https://github.com/ErnestAroozoo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GPT Discord Chatbot\n\nThis is a Discord chatbot written in Python. It can generate audio responses using the ElevenLabs text-to-speech API and respond to user messages using OpenAI's GPT-3.5 language model. It also has the ability to listen to a user's speech and convert it to text using the SpeechRecognition library. By default, the chatbot takes on the persona of Gawr Gura, a Virtual Youtuber from Hololive.\n\nVideo Demo: https://youtu.be/thluGMId-dw\n\n![](https://github.com/ErnestAroozoo/GPT-Discord-Chatbot/blob/main/screenshot.png)\n\n## Requirements\n\nThis program requires Python 3.8 or later, as well as several Python libraries including:\n\n- asyncio\n- os\n- requests\n- discord\n- openai\n- speech_recognition\n\nAdditionally, you will need to obtain API keys from OpenAI, ElevenLabs, and Discord to use this.\n\n## Usage\n\n1. Clone the repository and navigate to the project directory.\n2. Install the required libraries by running `pip install -r requirements.txt`.\n3. Create a `.env` file and enter your API keys and other settings.\n4. Run the program by running `python main.py`.\n\n## Features\n\n- Responds to user messages using OpenAI's GPT-3.5 language model.\n- Listens to a user's speech and converts it to text using the SpeechRecognition library.\n- Generates audio responses using the ElevenLabs text-to-speech API.\n- Plays generated audio responses in a Discord voice channel.\n- Remembers the context by saving previous conversations in a list structure.\n\n## Configuration\n\nThis program uses a `.env` file to store configuration settings. The following environment variables are used:\n\n- `OPENAI_API_KEY`: Your OpenAI API key.\n- `DISCORD_API_KEY`: Your Discord API key.\n- `ELEVENAI_API_KEY`: Your ElevenAI API key.\n- `ELEVENAI_VOICE_ID`: The ID of the voice you want to use for the ElevenAI text-to-speech API.\n- `FFMPEG_PATH`: The path to your FFMPEG executable.\n\n## Note\n- The chatbot listens locally for voice input at the moment since the default Discord.py library does not officially support voice input from voice channels at this time.\n- To talk with the chatbot in text simply tag the bot followed by your message (e.g., @BotUsername Hello, it's nice to meet you)\n- To speak with the chatbot in voice simply join a voice channel then tag the bot (e.g., @BotUsername)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fernestaroozoo%2Fgpt-discord-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fernestaroozoo%2Fgpt-discord-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fernestaroozoo%2Fgpt-discord-chatbot/lists"}