{"id":24647331,"url":"https://github.com/fusefairy/discordbot-edgegpt","last_synced_at":"2025-10-11T14:31:29.231Z","repository":{"id":66794384,"uuid":"603316685","full_name":"FuseFairy/DiscordBot-EdgeGPT","owner":"FuseFairy","description":"Using Copilot and Bing Image Creator、DALLE-3 on discord bot.","archived":false,"fork":false,"pushed_at":"2024-04-13T13:02:21.000Z","size":267,"stargazers_count":134,"open_issues_count":3,"forks_count":39,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-04-14T02:55:54.326Z","etag":null,"topics":["bing","bing-chat","bot","chatgpt-api","copilot","dalle-3","discord","discord-bot","discordbot","edgegpt","gpt","gpt-4","gpt4","image-generation","python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FuseFairy.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-02-18T06:07:08.000Z","updated_at":"2024-04-15T17:29:31.241Z","dependencies_parsed_at":"2023-11-12T16:12:59.888Z","dependency_job_id":"168cd8f6-e388-461d-842a-206fcdc2fa88","html_url":"https://github.com/FuseFairy/DiscordBot-EdgeGPT","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/FuseFairy/DiscordBot-EdgeGPT","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuseFairy%2FDiscordBot-EdgeGPT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuseFairy%2FDiscordBot-EdgeGPT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuseFairy%2FDiscordBot-EdgeGPT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuseFairy%2FDiscordBot-EdgeGPT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FuseFairy","download_url":"https://codeload.github.com/FuseFairy/DiscordBot-EdgeGPT/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuseFairy%2FDiscordBot-EdgeGPT/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007457,"owners_count":26084313,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bing","bing-chat","bot","chatgpt-api","copilot","dalle-3","discord","discord-bot","discordbot","edgegpt","gpt","gpt-4","gpt4","image-generation","python","python3"],"created_at":"2025-01-25T15:33:47.496Z","updated_at":"2025-10-11T14:31:28.949Z","avatar_url":"https://github.com/FuseFairy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DiscordBot-EdgeGPT\n\n  \u003ca href=\"https://www.python.org/downloads/\"\u003e\n    \u003cimg alt=\"PyPI - Python Version\" src=\"https://img.shields.io/badge/pyversion-3.10%2B-blue?style=flat\u0026label=python\"\u003e\n  \u003c/a\u003e\n\n  [![Try with Replit Badge](https://replit.com/badge?caption=Try%20with%20Replit)](https://replit.com/@dd8611706/DiscordBot-EdgeGPT?v=1)\n\n\u003e [!IMPORTANT]\n\u003e Because Microsoft changed the cookie expiration time from one week to only 3 days and made it easier to trigger Captcha challenges, it is no longer convenient to use. Apart from generating images, if you simply want to chat with an AI, I recommend using [Gemini discord bot](https://github.com/FuseFairy/DiscordBot-GeminiAI), which is much more user-friendly.\n\n## Update\n\u003e ### 2024/6/11：DALLE-3(Unofficial) has been fixed.\n\u003e ### 2024/6/3：Known issues with DALLE-3(Unofficial).\n\u003e ### 2024/4/21：Supporting the Suno plugin with Copilot.\n\u003e ### 2024/3/30：Support DALLE-3(Unofficial), get api key from https://dalle.feiyuyu.net/dashboard.\n\u003e ### 2024/3/5：Images can be generated while chatting.\n\n![demo](https://i.imgur.com/mvg18xh.gif)\n\n## Features\n\n\u003cdetails\u003e\n   \u003csummary\u003e\n   \n   ### Slash command\n\n   \u003c/summary\u003e\n   \n\u003e ### will create a separate chat for each user.\n   \n* cookies setting (set for using personal Bing Cookies): `/cookies setting [cookies_file]`\n  * Can upload own cookies (get from https://bing.com/).\n  ![setting](https://i.imgur.com/ZTLKkAJ.png)\n\n* Unofficial DALLE-3 api key setting (set for using personal unofficial DALLE-3 api key, can get from https://dalle.feiyuyu.net/dashboard): `/dalle3 setting`\n\n  ![dalle3_setting](https://i.imgur.com/cSVBFov.png)\n  \n* copilot: `/copilot [version] [style] [type]`\n  * A separate thread will be created, if use default version, can generate images while chatting.\n    * [version]：`default` can chat with Copilot, `jailbreak` chat with Sydney, but `jailbreak` image uploads are not currently supported.\n    * [style]：Have 3 conversation style can choose, `creative`、`balanced` and `precise`.\n    * [type]：Options for thread type, `public` or `private`.\n    * [plugin]：Currently only supports Suno.\n\n  ![chat](https://i.imgur.com/3Fx0iQE.png)\n  ![suno](https://i.imgur.com/G5FugDC.png)\n  \n* image creator: `/create image [service][prompt]`\n  \n  ![bingimage.png](https://i.imgur.com/pSCI1bg.png)\n  ![dalle3image.png](https://i.imgur.com/o13jaln.png)\n\n* reset conversation: `/reset conversation`\n\n  ![reset](https://i.imgur.com/7CyEFao.png)\n\u003c/details\u003e\n\n\u003cdetails\u003e\n   \u003csummary\u003e\n   \n   ### Mention bot\n\n   \u003c/summary\u003e\n\n\u003e ### same function as the slash command, but this will reply all user messages.\n\n* If only the bot is mentioned, you will get a drop-down list of settings.\n\n  ![dropdown1](https://i.imgur.com/XDcnTuC.png)\n  ![dropdown2](https://i.imgur.com/azHIUqv.png)\n  ![mention1](https://i.imgur.com/BDy0See.png)\n  ![mention2](https://i.imgur.com/iJg4pSg.png)\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n   \u003csummary\u003e\n   \n   ### Prefix command (available only to bot owner)\n\n   \u003c/summary\u003e\n \n \u003e ### bot owner setting.\n   \n * `!unload [file_name_in_cogs_folder]`: Disable command from the specified file.\n * `!load [file_name_in_cogs_folder]`: Enable the command from the specified file.\n \n   ![load \u0026 unload](https://i.imgur.com/spsyAEG.png)\n  \n * `!clean`: Empty discord_bot.log file.\n * `!getLog`: Get discord_bot.log file. Real-time tracking of the bot's operating status.\n   \n   ![getLog](https://i.imgur.com/LHX4yWV.png)\n \n * `!upload [.txt_file]`: Same as `/cookies setting`, but for default cookies.\n \n   ![upload](https://i.imgur.com/Qqz07WA.png)\n\u003c/details\u003e\n\n## Install\n```\npip install -r requirements.txt\n```\n\n## Usage\n1. Rename the file`.env.dev`to`.env`, then open it and edit it.\n \u003e [!WARNING]\n \u003e AUTO_COOKIES features are still being tested, so it may not work for everyone, and if you want to use with BING_COOKIES, you need to set BING_COOKIES first to work properly.\n   ```env\n   DISCORD_BOT_TOKEN=\n    \n   # (Optional) If you are run with Replit, it is recommended to configure cookies using this parameter instead of using cookies.json\n   BING_COOKIES=\n    \n   # (Experimental) Automatically obtain Bing cookies and regular updates \n   AUTO_COOKIES=False # False/True\n    \n   # (Optional) proxy\n   PROXY= \n    \n   # Timeout for BingImageCreator\n   IMAGE_TIMEOUT=300\n   IMAGE_MAX_CREATE_SEC=300\n    \n   # Set unofficial DALLE-3 api key, api key can get from https://dalle.feiyuyu.net/dashboard\n   DALLE3_UNOFFICIAL_APIKEY=\n  \n   # (Optional) Allow mention bot only in specific channel.\n   MENTION_CHANNEL_ID=1227670969702754857\n    \n   # (Optional) Allow each commands in some channels.\n   # specific channel(s) for `/cookies setting`\n   COOKIES_SETTING_CHANNEL_ID=1227670969702754857,1227327094070254857\n    \n   # specific channel(s) for `/dalle3 setting`\n   DALLE3_SETTING_CHANNEL_ID=122767096970275483\n    \n   # specific channel(s) for `/copilot`\n   CHAT_CHANNEL_ID=\n    \n   # specific channel(s) for `/create image`\n   CREATE_IMAGE_CHANNEL_ID=\n    \n   # specific channel(s) for `/reset conversation`\n   RESET_CHAT_CHANNEL_ID=\n    \n   # specific channel(s) for `/help`\n   HELP_CMD_CHANNEL_ID=\n   ```\n   \n3. Create the `cookies.json` file. (If you have set BING_COOKIES or set AUTO_COOKIES to True in the `.env` file, skip this step!)\n   * Install the cookie editor extension for Chrome or Firefox.\n   * Go to [bing.com](https://www.bing.com/)\n   * Click \"Export\" on the buttom right.\n   * Paste your cookies into a file `cookies.json`\n\n4. Start run your bot.\n   ```python\n   python bot.py\n\n   ```\n\n## Credits\n* ReEdgeGPT - https://github.com/Integration-Automation/ReEdgeGPT\n\n* Sydney  - https://github.com/juzeon/SydneyQt/tree/v1\n\n* free-dall-e-proxy - https://github.com/Feiyuyu0503/free-dall-e-proxy\n\n## Contributors\n\nThis project exists thanks to all the people who contribute.\n\n[![](https://contrib.rocks/image?repo=FuseFairy/DiscordBot-EdgeGPT)](https://github.com/FuseFairy/DiscordBot-EdgeGPT/graphs/contributors)\n\n\n## Star History\n[![Star History Chart](https://api.star-history.com/svg?repos=FuseFairy/DiscordBot-EdgeGPT\u0026type=Date)](https://star-history.com/#FuseFairy/DiscordBot-EdgeGPT\u0026Date)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusefairy%2Fdiscordbot-edgegpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffusefairy%2Fdiscordbot-edgegpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusefairy%2Fdiscordbot-edgegpt/lists"}