{"id":25252843,"url":"https://github.com/doubleangels/chatgpt","last_synced_at":"2025-06-28T19:33:52.269Z","repository":{"id":274524191,"uuid":"923147536","full_name":"doubleangels/chatgpt","owner":"doubleangels","description":"A ChatGPT chatbot for use on Discord servers.","archived":false,"fork":false,"pushed_at":"2025-03-28T07:23:45.000Z","size":413,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T08:23:41.675Z","etag":null,"topics":["chatgpt","discord","interactions-py"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/doubleangels.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":"2025-01-27T18:10:56.000Z","updated_at":"2025-03-28T07:23:52.000Z","dependencies_parsed_at":"2025-03-20T08:23:39.821Z","dependency_job_id":null,"html_url":"https://github.com/doubleangels/chatgpt","commit_stats":null,"previous_names":["doubleangels/chatgpt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doubleangels%2Fchatgpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doubleangels%2Fchatgpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doubleangels%2Fchatgpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doubleangels%2Fchatgpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doubleangels","download_url":"https://codeload.github.com/doubleangels/chatgpt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247406104,"owners_count":20933806,"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":["chatgpt","discord","interactions-py"],"created_at":"2025-02-12T04:18:50.513Z","updated_at":"2025-06-28T19:33:52.261Z","avatar_url":"https://github.com/doubleangels.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chatgpt\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"logo.png\" alt=\"Logo\" width=\"250\"\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\nA lightweight Discord bot powered by ChatGPT and OpenAI, designed to provide interactive conversational capabilities right within your Discord server.\n\n## Features\n\n- **ChatGPT Integration:** Leverage OpenAI's powerful language model for dynamic, context-aware conversations.\n- **Easy Deployment:** Containerized with Docker, ensuring quick and hassle-free setup.\n- **Scalable \u0026 Resilient:** Automatically restarts on failures to maintain high availability.\n\n## Prerequisites\n\nBefore deploying the bot, ensure you have the following:\n\n- A valid [Discord Bot Token](https://discord.com/developers/applications).\n- An active [OpenAI API key](https://platform.openai.com/overview).\n\n## Docker Compose Setup\n\nUse the following `docker-compose.yml` snippet to deploy the bot:\n\n```yaml\nservices:\n  chatgpt:\n    image: ghcr.io/doubleangels/chatgpt:latest\n    container_name: chatgpt\n    restart: always\n    environment:\n      - DISCORD_BOT_TOKEN=your_discord_bot_token_here\n      - OPENAI_API_KEY=your_openai_api_key_here\n      - MODEL_NAME=your_desired_model_name_here\n      - MAX_HISTORY_LENGTH=your_desired_max_history_length_here\n      - LOG_LEVEL=your_desired_log_level_here\n\nnetworks:\n  default:\n    name: chatgpt\n```\n\n## Environment Variables\n\nHere is a table of all available environment variables:\n\n| Variable             | Description                                                | Required |    Default    | Example                                 |\n| -------------------- | ---------------------------------------------------------- | :------: | :-----------: | --------------------------------------- |\n| `DISCORD_BOT_TOKEN`  | Authentication token for your Discord bot                  |    ✅    |       -       | -                                       |\n| `OPENAI_API_KEY`     | API key for OpenAI services                                |    ✅    |       -       | -                                       |\n| `MODEL_NAME`         | The name of the OpenAI model to use                        |    ❌    | `gpt-4o-mini` | `gpt-4`, `gpt-4-turbo`, `gpt-3.5-turbo` |\n| `MAX_HISTORY_LENGTH` | Maximum number of messages to keep in conversation history |    ❌    |     `10`      | `20`                                    |\n| `LOG_LEVEL`          | Determines the verbosity of logs                           |    ❌    |    `info`     | `error`, `warn`, `info`, `debug`        |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoubleangels%2Fchatgpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoubleangels%2Fchatgpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoubleangels%2Fchatgpt/lists"}