{"id":21432891,"url":"https://github.com/02loveslollipop/discordgptchatbot","last_synced_at":"2025-06-15T00:03:45.000Z","repository":{"id":143506840,"uuid":"613155863","full_name":"02loveslollipop/DiscordGPTChatBot","owner":"02loveslollipop","description":"A Python based Discord chat bot that uses the OpenAI GPT API with a custom role","archived":false,"fork":false,"pushed_at":"2024-02-12T20:32:55.000Z","size":37466,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-02-12T21:34:48.781Z","etag":null,"topics":["ai","chatbot","chatgpt","discord","discord-py","gpt-35-turbo","python"],"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/02loveslollipop.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}},"created_at":"2023-03-13T02:13:48.000Z","updated_at":"2024-02-12T21:34:51.556Z","dependencies_parsed_at":"2024-02-12T21:45:23.045Z","dependency_job_id":null,"html_url":"https://github.com/02loveslollipop/DiscordGPTChatBot","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/02loveslollipop%2FDiscordGPTChatBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/02loveslollipop%2FDiscordGPTChatBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/02loveslollipop%2FDiscordGPTChatBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/02loveslollipop%2FDiscordGPTChatBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/02loveslollipop","download_url":"https://codeload.github.com/02loveslollipop/DiscordGPTChatBot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225978198,"owners_count":17554527,"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":["ai","chatbot","chatgpt","discord","discord-py","gpt-35-turbo","python"],"created_at":"2024-11-22T23:22:57.899Z","updated_at":"2024-11-22T23:22:58.505Z","avatar_url":"https://github.com/02loveslollipop.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord GPT Chat Bot\r\n\r\n\u003e A Python based Discord chat bot that uses the OpenAI GPT API with a custom role\r\n\u003e \r\n[![DownloadAMD64](https://img.shields.io/docker/image-size/02loveslollipop/discordgptchatbot/1.0.0amd64?label=AMD64\u0026logo=docker\u0026style=for-the-badge)](https://hub.docker.com/layers/02loveslollipop/discordgptchatbot/1.0.0amd64/images/sha256-c68b237e7b0340fc5eab7a1f016f8de3b650458e38f95e74e2af2638a3897c87)\r\n[![DownloadARM64](https://img.shields.io/docker/image-size/02loveslollipop/discordgptchatbot/1.0.0arm64?label=ARM64\u0026logo=docker\u0026style=for-the-badge)](https://hub.docker.com/layers/02loveslollipop/discordgptchatbot/1.0.0arm64/images/sha256-391617d8318032a290c6ad942fb6819b96146297e61ad09186200958bb17b18c)\r\n[![Replit](https://img.shields.io/badge/Run%20it%20on-Replit-orange?style=for-the-badge\u0026logo=replit)](https://replit.com/@02loveslollipop/DiscordGPTChatBot)\r\n\r\n## Intro\r\nOpenAI GPT3.5 model allow to change it behavior using custom training and using system role messages, this repository allows to create a Discord Bot using the GPT 3.5 model with a custom role allowing to change the behavior of the answers of the bot.\r\n\r\n## Requirements\r\n\r\n1. You must a have a valid OpenAI API key to use it services (Currently using **GPT-3.5-turbo**).\r\n2. You need a valid Discord bot Token.\r\n3. A Python environment to run the repo.\r\n4. If you want to use voice related commands you need FFmpeg on the device that will run the bot\r\n\r\n# Quick Setup\r\n\r\nFull setup guide available at [Setup guide](https://github.com/02loveslollipop/DiscordGPTChatBot/wiki/Setup-guide)\r\n\r\n1. Install Python 3.9 in your device.\r\n\r\n2. Clone the repository: \r\n\r\n```bash\r\ngit clone https://github.com/02loveslollipop/DiscordGPTChatBot.git\r\n```\r\n\r\n3. Install FFmpeg on your device, FFmpeg can be install [here](https://ffmpeg.org/)\r\n\r\n\r\n4. Create a copy of ``example_config.yml`` and rename it as ``config.yml``, then open it and paste your Discord and OpenAI keys and change the role of the chat bot (Full description of [config.yml](https://github.com/02loveslollipop/DiscordGPTChatBot/wiki/Structure-of-config.yml)):\r\n\r\n```yaml\r\nbot:\r\n  token: \"YOUR_DISCORD_KEY\" # Paste here the token you got from Discord Developer Portal\r\n\r\nopen_ai:\r\n  token: \"YOUR_OPEN_AI_KEY\" # Paste here the OpenAI secret key you got from OpenAI platform\r\n  role: \"You are a helpful assistant.\" # Change here chatbot's role, this will change it's behavior answering questions\r\n```\r\n\r\n5. Install requirements:\r\n\r\n```bash\r\npip -r /path/to/your/repo/requirements.txt\r\n```\r\n\r\n6. Run the bot:\r\n\r\n```bash\r\npython main.py\r\n```\r\n\r\n\r\n# Discord Commands\r\n[Full list of commands here](https://github.com/02loveslollipop/DiscordGPTChatBot/wiki/Discord-commands)\r\n\r\n# Configuration of config.yml\r\n[Config.yml configuration guide](https://github.com/02loveslollipop/DiscordGPTChatBot/wiki/Structure-of-config.yml)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F02loveslollipop%2Fdiscordgptchatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F02loveslollipop%2Fdiscordgptchatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F02loveslollipop%2Fdiscordgptchatbot/lists"}