{"id":17815866,"url":"https://github.com/bmorphism/mesocunt","last_synced_at":"2025-04-02T08:17:40.050Z","repository":{"id":215508634,"uuid":"680090814","full_name":"bmorphism/mesocunt","owner":"bmorphism","description":"A customizable Discord bot with a ChatGPT (or GPT4, bring your own API key) backend. You can configure the bot’s context and prompt in the template settings.","archived":false,"fork":false,"pushed_at":"2023-08-18T10:13:33.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T02:39:50.319Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bmorphism.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}},"created_at":"2023-08-18T10:13:31.000Z","updated_at":"2023-08-18T18:29:12.000Z","dependencies_parsed_at":"2024-01-04T21:10:20.986Z","dependency_job_id":"dca6c62a-7917-482a-a6c7-b3e3a536ac63","html_url":"https://github.com/bmorphism/mesocunt","commit_stats":null,"previous_names":["bmorphism/mesocunt"],"tags_count":0,"template":false,"template_full_name":"flows-network/discord-chatgpt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmorphism%2Fmesocunt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmorphism%2Fmesocunt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmorphism%2Fmesocunt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmorphism%2Fmesocunt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bmorphism","download_url":"https://codeload.github.com/bmorphism/mesocunt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246777821,"owners_count":20832033,"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":"2024-10-27T16:24:59.463Z","updated_at":"2025-04-02T08:17:40.031Z","avatar_url":"https://github.com/bmorphism.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cp align=\"center\"\u003eA Discord ChatGPT bot\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://discord.gg/ccZn9ZMfFf\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/chat-Discord-7289DA?logo=discord\" alt=\"flows.network Discord\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://twitter.com/flows_network\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Twitter-1DA1F2?logo=twitter\u0026amp;logoColor=white\" alt=\"flows.network Twitter\"\u003e\n  \u003c/a\u003e\n   \u003ca href=\"https://flows.network/flow/createByTemplate/discord-chatgpt\"\u003e\n    \u003cimg src=\"https://img.shields.io/website?up_message=deploy\u0026url=https%3A%2F%2Fflows.network%2Fflow%2Fnew\" alt=\"Create a flow\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n[Deploy this function on flows.network](https://flows.network/flow/createByTemplate/discord-chatgpt), and you will get a Discord bot that uses ChatGPT to respond to every question in your Discord DM.\n\n## Prerequisites\n\n* You will need to bring your own [OpenAI API key](https://openai.com/blog/openai-api). If you do not already have one, [sign up here](https://platform.openai.com/signup).\n* You also need a bot token to access the Discord API. Please refer to [How to create a Discord chat bot](https://flows.network/blog/discord-chat-bot-guide) to save the Discord API Token and invite the bot to your server. You can see the bot is offline now. But don't worry! After you finish all the steps, the bot will be online. \n\n## Deploy your Telegram ChatGPT bot in 3 steps\n\n1. Create a bot from a template\n2. Add your ChatGPT API key\n3. Add the Discord bot token\n\n### 1 Create a bot from a template\n\n[**Just click here**](https://flows.network/flow/createByTemplate/discord-chatgpt)\n\n\u003cimg width=\"500\" alt=\"image\" src=\"https://github.com/flows-network/discord-chatgpt/assets/45785633/f53553da-ccec-4fa3-ada3-851d7c3b4c5e\"\u003e\n\nHere you can see three variables. You can customize the `system_prompt` variable to prompt ChatGPT. \n\nClick on the **Create and Build** button.\n\n### 2 Add the Discord token\n\nYou will now set up Discord integration. Enter your Discord token here. Please refer to [How to create a Discord chat bot](https://flows.network/blog/discord-chat-bot-guide).\n\n\u003cimg width=\"530\" alt=\"image\" src=\"https://github.com/flows-network/discord-chatgpt/assets/45785633/e978d2fe-5666-4862-84c6-91a87a25e929\"\u003e\n\nClick on **Continue**.\n\n### 3 Add your OpenAI API key\n\nYou will now set up OpenAI integration. Click on **Connect**, and enter your key.\n\n[\u003cimg width=\"450\" alt=\"image\" src=\"https://user-images.githubusercontent.com/45785633/226564674-902933b5-8ff3-4724-93e3-2b2f67dc0b9a.png\"\u003e](https://user-images.githubusercontent.com/45785633/226564674-902933b5-8ff3-4724-93e3-2b2f67dc0b9a.png)\n\nClose the tab and go back to the flow.network page once you are done. Click on **Deploy** button.\n\n## Give it a try. \n\nWhen the status of the flow is ready and running, you can go back to your Discord server and check out the status of the bot you just invited.\n\nNow you can see the bot on the right `online` contact list. DM the bot or @the bot in a channel, the bot will answer your questions.\n\n## Others\n\nIf you want to build locally, make sure you have installed Rust and added `wasm32-wasi` traget.\n\n```\ncargo build --target wasm32-wasi --release\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmorphism%2Fmesocunt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbmorphism%2Fmesocunt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmorphism%2Fmesocunt/lists"}