{"id":24442147,"url":"https://github.com/techut30/discord-gpt-ai-bot","last_synced_at":"2025-03-14T02:27:42.765Z","repository":{"id":257290565,"uuid":"857833494","full_name":"techut30/discord-gpt-AI-bot","owner":"techut30","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-15T18:49:27.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T21:47:17.618Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/techut30.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-09-15T18:15:05.000Z","updated_at":"2024-09-15T18:49:30.000Z","dependencies_parsed_at":"2024-09-15T19:48:08.399Z","dependency_job_id":null,"html_url":"https://github.com/techut30/discord-gpt-AI-bot","commit_stats":null,"previous_names":["techut30/discord-got-ai-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techut30%2Fdiscord-gpt-AI-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techut30%2Fdiscord-gpt-AI-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techut30%2Fdiscord-gpt-AI-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techut30%2Fdiscord-gpt-AI-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techut30","download_url":"https://codeload.github.com/techut30/discord-gpt-AI-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243510927,"owners_count":20302470,"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":[],"created_at":"2025-01-20T21:45:26.477Z","updated_at":"2025-03-14T02:27:42.737Z","avatar_url":"https://github.com/techut30.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord AI Bot with OpenAI Integration\n\nThis repository contains the code for a Discord bot that integrates with OpenAI's GPT-3.5 model. The bot responds to prompts, answers questions, and includes some additional features like basic interactions and commands.\n\n## Features\n- **Slash Commands:** Supports various commands such as `/hello`, `/ping`, `/prompt`, `/help`, `/invite`, and `/shutdown`.\n- **AI-Powered Responses:** Uses OpenAI's GPT-3.5 to generate responses based on user prompts.\n- **Simple Setup:** Customizable and ready for deployment with minimal configuration.\n- **Guild Syncing:** Slash commands are synced for specific Discord guilds, ensuring faster availability.\n- **Interaction Handling:** Handles basic user interactions and displays helpful responses.\n\n## Setup Guide\n\n### Requirements\n- Python 3.8+\n- OpenAI API Key\n- Discord Bot Token\n- Libraries:\n  - `discord.py`\n  - `openai`\n\n### Installation\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/yourusername/discord-ai-bot.git\n   cd discord-ai-bot\n\n2. # Discord AI Bot with OpenAI Integration\n\nThis repository contains the code for a Discord bot that integrates with OpenAI's GPT-3.5 model. The bot responds to prompts, answers questions, and includes some additional features like basic interactions and commands.\n\n## Features\n- **Slash Commands:** Supports various commands such as `/hello`, `/ping`, `/prompt`, `/help`, `/invite`, and `/shutdown`.\n- **AI-Powered Responses:** Uses OpenAI's GPT-3.5 to generate responses based on user prompts.\n- **Simple Setup:** Customizable and ready for deployment with minimal configuration.\n- **Guild Syncing:** Slash commands are synced for specific Discord guilds, ensuring faster availability.\n- **Interaction Handling:** Handles basic user interactions and displays helpful responses.\n\n## Setup Guide\n\n### Requirements\n- Python 3.8+\n- OpenAI API Key\n- Discord Bot Token\n- Libraries:\n  - `discord.py`\n  - `openai`\n\n### Installation\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/yourusername/discord-ai-bot.git\n   cd discord-ai-bot\n\n\n2. Install the required dependencies\n   ```bash\n   pip install -r requirements.txt\n\n### Set up your environment variables:\n\n1. Replace the placeholder `YOUR-BOT-TOKEN` with your actual Discord bot token in `bot.py`:\n   ```python\n   BOT_TOKEN = \"YOUR-BOT-TOKEN\"\n2. Replace the placeholder YOUR-OPEN-AI-API-KEY with your OpenAI API key in openai_client.py:\n   ```bash\n   API_KEY = \"YOUR-OPEN-AI-API-KEY\"\n\n3. Update the GUILD_ID to your server's guild ID in bot.py:\n   ```bash\n   GUILD_ID = 000000000000000000  # replace with your guild id\n\n4. Make sure to keep your bot token and API key secure and never share them publicly.\n   ```bash\n   This way, each step is clearly defined, and the code changes are presented in a neat, readable format. The use of code blocks and numbered instructions makes the section more visually appealing and easier to follow.\n\n### Run the bot:\n```bash\npython bot.py\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechut30%2Fdiscord-gpt-ai-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechut30%2Fdiscord-gpt-ai-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechut30%2Fdiscord-gpt-ai-bot/lists"}