{"id":22533267,"url":"https://github.com/zobweyt/discord.net.template","last_synced_at":"2025-07-04T11:35:44.472Z","repository":{"id":60000689,"uuid":"529585461","full_name":"zobweyt/Discord.Net.Template","owner":"zobweyt","description":"A template for building scalable and ready for production Discord.NET apps within the .NET ecosystem (https://discord.com)","archived":false,"fork":false,"pushed_at":"2024-06-10T18:00:48.000Z","size":124,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T20:02:19.539Z","etag":null,"topics":["bogus","discord","discord-csharp","discord-net","discord-net-database","discord-net-sql","discord-net-template","dotnet","ef-core","ef-core-migrations","moq","sqlite","template","xunit"],"latest_commit_sha":null,"homepage":"https://docs.discordnet.dev","language":"C#","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/zobweyt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":".github/CODE_OF_CONDUCT.md","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":"2022-08-27T12:55:27.000Z","updated_at":"2024-12-20T14:32:41.000Z","dependencies_parsed_at":"2024-06-10T20:16:59.842Z","dependency_job_id":"7bf00732-95a0-4155-a7d0-d80ac3c9948d","html_url":"https://github.com/zobweyt/Discord.Net.Template","commit_stats":null,"previous_names":["zobweyt/discord.net.template"],"tags_count":5,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zobweyt%2FDiscord.Net.Template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zobweyt%2FDiscord.Net.Template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zobweyt%2FDiscord.Net.Template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zobweyt%2FDiscord.Net.Template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zobweyt","download_url":"https://codeload.github.com/zobweyt/Discord.Net.Template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248083996,"owners_count":21045123,"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":["bogus","discord","discord-csharp","discord-net","discord-net-database","discord-net-sql","discord-net-template","dotnet","ef-core","ef-core-migrations","moq","sqlite","template","xunit"],"created_at":"2024-12-07T09:07:40.752Z","updated_at":"2025-04-09T18:03:49.885Z","avatar_url":"https://github.com/zobweyt.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/discord-net/Discord.Net\"\u003e\n    \u003cimg width=\"100\" src=\"https://github.com/zobweyt/Discord.Net.Template/assets/98274273/43b481b3-72b7-4669-98f7-74f41cf9e30b\" alt=\"Discord.NET Logo\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003e\n  Discord.Net.Template\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  A template for building scalable and ready for production \u003ca href=\"https://docs.discordnet.dev\"\u003eDiscord.NET\u003c/a\u003e apps within the \u003ca href=\"dotnet.microsoft.com\"\u003e.NET\u003c/a\u003e ecosystem.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/librariesio/github/zobweyt/Discord.Net.Template\" alt=\"Dependencies\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/repo-size/zobweyt/Discord.Net.Template\" alt=\"Size\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/created-at/zobweyt/Discord.Net.Template\" alt=\"Creation Date\" /\u003e\n\u003c/p\u003e\n\n## 📦 Usage\n\nTo start, open a command prompt and follow these instructions:\n\n### Step 1 — Get the template\n\n[Use](https://github.com/zobweyt/Discord.Net.Template/generate) this repository as a [template](https://docs.github.com/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template), open it in your editor, and navigate to the startup project:\n\n```sh\ncd src/Template\n```\n\n### Step 2 — Configure the environment\n\nWe are using the [options pattern](https://learn.microsoft.com/aspnet/core/fundamentals/configuration/options) for typed access to groups of [related settings](./src/Template/Common/Options). You should configure the [`appsettings.json`](./src/Template/appsettings.json) file or manage [user secrets](https://learn.microsoft.com/aspnet/core/security/app-secrets) via [CLI](https://learn.microsoft.com/dotnet/core/tools):\n\n```sh\ndotnet user-secrets set \u003ckey\u003e \u003cvalue\u003e\n```\n\n\u003e [!NOTE]\n\u003e Pending database migrations are applied automatically [before startup](./src/Template/Program.cs#L49) and an informational [message](./src/Template/Extensions/HostExtensions.cs#L29) is logged.\n\n### Step 3 — Run the app\n\nTo run the bot, just execute the following command: \n\n```sh\ndotnet watch\n```\n\nThe initial setup is done. Enjoy using the template! 🎉\n\n\u003e [!WARNING]\n\u003e Instead of using the `dotnet run` in production, create a deployment using the `dotnet publish` command and [deploy](https://docs.discordnet.dev/guides/deployment/deployment) the output.\n\n## 🎨 Customization\n\nHere is what you can also do:\n- [ ] Find and replace all occurrences of \"template\" to fit your app's name.\n- [ ] Rewrite the [`README.md`](README.md) file to fit your needs.\n- [ ] Follow the TODO comments across the entire solution.\n\n\u003e [!TIP]\n\u003e Take a look at the [discord-md-badge](https://github.com/gitlimes/discord-md-badge) project which is a customizable badge that shows your or a bot account status, or a server invite.\n\n## 🧪 Testing\n\nThis project utilizes the [xUnit](https://github.com/xunit/xunit) framework for creating test cases. It also incorporates [Moq](https://github.com/moq/moq) for mocking objects and [Bogus](https://github.com/bchavez/Bogus) to generate fake data.\n\nTo run all the [tests](./test), execute the following command from the root directory in your command prompt:\n\n```sh\ndotnet test\n```\n\n## 🚀 Contributing\n\nTo contribute to this project, please read the [`CONTRIBUTING.md`](.github/CONTRIBUTING.md) file. It provides details on our code of conduct and the process for submitting pull requests.\n\n## ❤️ Acknowledgments\n\nSee the [contributors](https://github.com/zobweyt/Discord.Net.Template/contributors) who participated in this project and the [dependencies](https://github.com/zobweyt/Discord.Net.Template/network/dependencies) used.\n\n## 📜 License\n\nThis project is licensed under the **MIT License** — see the [`LICENSE.md`](LICENSE.md) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzobweyt%2Fdiscord.net.template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzobweyt%2Fdiscord.net.template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzobweyt%2Fdiscord.net.template/lists"}