{"id":29722008,"url":"https://github.com/glowstudent777/discord.net-template","last_synced_at":"2025-07-24T16:26:53.439Z","repository":{"id":171775214,"uuid":"648371449","full_name":"Glowstudent777/Discord.Net-Template","owner":"Glowstudent777","description":"A .Net 7 Discord Bot Template","archived":false,"fork":false,"pushed_at":"2024-04-17T14:52:09.000Z","size":120,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T05:37:57.563Z","etag":null,"topics":["csharp","discord","discord-bot","discord-net"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Glowstudent777.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","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}},"created_at":"2023-06-01T20:20:56.000Z","updated_at":"2024-02-22T17:30:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"e8c2a4c5-de32-4587-a3e1-bc4ea93a164c","html_url":"https://github.com/Glowstudent777/Discord.Net-Template","commit_stats":null,"previous_names":["phish-net/discord.net-template","glowstudent777/discord.net-template"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/Glowstudent777/Discord.Net-Template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Glowstudent777%2FDiscord.Net-Template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Glowstudent777%2FDiscord.Net-Template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Glowstudent777%2FDiscord.Net-Template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Glowstudent777%2FDiscord.Net-Template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Glowstudent777","download_url":"https://codeload.github.com/Glowstudent777/Discord.Net-Template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Glowstudent777%2FDiscord.Net-Template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266871257,"owners_count":23998257,"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-07-24T02:00:09.469Z","response_time":99,"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":["csharp","discord","discord-bot","discord-net"],"created_at":"2025-07-24T16:26:36.909Z","updated_at":"2025-07-24T16:26:53.431Z","avatar_url":"https://github.com/Glowstudent777.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord.Net Template\n\nThis is a Discord bot template made in C# using .Net 7\n\n### Features\n\n- [x] Dockerized\n- [x] Database\n- [x] Organized Layout\n- [x] Nice Logs\n- [x] Cron Jobs\n\n## Cloning\n\nJust a simple command in the terminal of your choice\n\n```\ngit clone https://github.com/Glowstudent777/Discord.Net-Template.git\n```\n\n## Configuration\n\n### Setting the Token\n1. Get your Discord bot token from the [Discord Developer Portal](https://discord.com/developers/applications).\n2. Rename `.env.example` to `.env` using the following command:\n```sh\nmv .env.example .env\n```\n3. Add your token to the `.env` file. This can be done using this command: `sudo nano .env`. Paste your token after `TOKEN=`. Lastly save the file using \u003ckbd\u003eCtrl\u003c/kbd\u003e+\u003ckbd\u003eX\u003c/kbd\u003e, then \u003ckbd\u003eY\u003c/kbd\u003e and finally \u003ckbd\u003eEnter\u003c/kbd\u003e.\n\n## Docker\n\nYou will need to have Docker installed for this, if you don't have it set up, [here is a guide](https://docs.docker.com/engine/install/debian/#install-using-the-repository).\n\nAfter you have installed and set up Docker run the following command:\n```sh\ndocker compose up -d --build\n```\n\n# Development\n\nI suggest using [Visual Studio](https://visualstudio.microsoft.com/) for this project.\n\n## Changing Project Name\n\nIf you change the project name from `Houston` to something else make sure to update these files with your new name.\n- [docker-compose.yml](docker-compose.yml)\n- [src/Houston.sln](src/Houston.sln)\n- [src/Houston.Bot/Dockerfile](src/Houston.Bot/Dockerfile)\n- OPTIONAL if you want the GitHub Workflow, [.github/workflows/docker-image.yml](.github/workflows/docker-image.yml)\n\n## Environment Variables\n\n| Key      | Required | Default |\n| -------- | -------- | ------- |\n| TOKEN    | True     | None    |\n| DATABASE | True     | None    |\n\nIf you don't know how, here is how you enter environment variables in Visual Studio for local testing.\n\n1. Right click the `Xxx.Bot` project and select `Properties`\n2. In the menu on the right side, go to `Debug`\n3. Select `Open debug launch profiles UI`\n4. Add `TOKEN` and `DATABASE` to the `Environment variables` section\n\n## Database\n\nYou'll need to fire up a [Postgresql](https://www.postgresql.org/) database and grab it's connection details.\n\nIf your database isn't running locally you'll need to replace `localhost` with the server ip/hostname.\n\n| Key      \t  | Input                             |\n| ----------- | --------------------------------- |\n| Server   \t  | IP or hostname                    |\n| Port     \t  | Usually 5432                      |\n| UserId      | Database username                 |\n| Password    | Database password                 |\n| Database \t  | database you're using for the bot |\n\n```\nServer=localhost;Port=5432;UserId=admin;Password=securepassword;Database=superdb\n```\n\n## Building\n\nBuild the bot and restore the dependancies using the `dotnet` command.\n\n```\ndotnet restore \u0026\u0026 dotnet build\n```\n\n## Running the Bot\n\nIn Visual Studio you'll find two buttons at the top; a solid green start button with the text `Xxx.Bot` and one next to it that has a green outline without text. The solid green with text is for debugging and the one without starts without debugging.\n\n\n# Contributing \u0026 Licensing\n\nContributions are welcome. Please read the full conditions surrounding contributing in the [LICENSE](LICENSE) document before sending in your contributions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglowstudent777%2Fdiscord.net-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglowstudent777%2Fdiscord.net-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglowstudent777%2Fdiscord.net-template/lists"}