{"id":28625404,"url":"https://github.com/namelessproj/discordbot_boilerplate","last_synced_at":"2026-04-26T22:31:32.722Z","repository":{"id":286641210,"uuid":"962049069","full_name":"NamelessProj/DiscordBot_Boilerplate","owner":"NamelessProj","description":"This python project give you the necessary tools to write your own Discord bot in python.","archived":false,"fork":false,"pushed_at":"2025-05-17T12:07:18.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-20T05:38:54.588Z","etag":null,"topics":["boilerplate","boilerplate-template","discord","discord-bot","discord-bot-template","discord-py"],"latest_commit_sha":null,"homepage":"","language":"Python","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/NamelessProj.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,"zenodo":null}},"created_at":"2025-04-07T15:11:36.000Z","updated_at":"2025-05-17T12:07:21.000Z","dependencies_parsed_at":"2025-05-12T00:18:33.301Z","dependency_job_id":"cd780d81-f940-4ab7-8c9e-5b8ee28ae19e","html_url":"https://github.com/NamelessProj/DiscordBot_Boilerplate","commit_stats":null,"previous_names":["namelessproj/my-first-discord-bot","namelessproj/discordbot_boilerplate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NamelessProj/DiscordBot_Boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamelessProj%2FDiscordBot_Boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamelessProj%2FDiscordBot_Boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamelessProj%2FDiscordBot_Boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamelessProj%2FDiscordBot_Boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NamelessProj","download_url":"https://codeload.github.com/NamelessProj/DiscordBot_Boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamelessProj%2FDiscordBot_Boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32315711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T21:09:39.134Z","status":"ssl_error","status_checked_at":"2026-04-26T21:09:21.240Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["boilerplate","boilerplate-template","discord","discord-bot","discord-bot-template","discord-py"],"created_at":"2025-06-12T08:10:36.533Z","updated_at":"2026-04-26T22:31:32.687Z","avatar_url":"https://github.com/NamelessProj.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/Python-v.3.12.6-blue\" alt=\"Python version\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://img.shields.io/github/license/NamelessProj/DiscordBot_Boilerplate\" alt=\"licence\"/\u003e\n\u003cimg src=\"https://img.shields.io/github/repo-size/NamelessProj/DiscordBot_Boilerplate\" alt=\"repo size\"/\u003e\n\u003c/p\u003e\n\n# Discord Bot Boilerplate\nThis python project give you the necessary tools to write your own Discord bot in python.\n\n## .env\nTo be able to use this exemple bot, you'll need a `.env` file.\n```env\nBOT_TOKEN=Your_Discord_Bot_Token\nGUILD_ID=The_Discord_Server_Id\nPYTHON_ENV=dev\n```\n\nThe `BOT_TOKEN` will be used to connect the bot to your server.\n\nThe `GUILD_ID` will be used to get the server where the bot is connected and to get the channel where the citations are.\n\nThe `PYTHON_ENV` will be used to set the environment of the bot. It can be `dev` or `prod`. If you set it to `dev`, the bot will be only available for you. If you set it to `prod`, the bot will be available for everyone.\n\n\u003e [!note]\n\u003e ### How to get your Bot token ?\n\u003e To get your bot token, you'll need to go to the [Discord Developer Portal](https://discord.com/developers/applications).\n\u003e You'll have to create a `New Application` and in the `Bot` page, you'll have to:\n\u003e - Turn on `Presence Intent`\n\u003e - Turn on `Server Members Intent`\n\u003e - Turn on `Message Content Intent`\n\u003e - Check `Administartor` in the `Bot Permissions` that way the bot can do anything. _(Make sure to trust the code)_\n\u003e \n\u003e Then on the `OAuth2` page, in the `OAuth2 URL Generator` part, check `bot`, copy the url and pasted it in your browser.\n\u003e \n\u003e Once your bot on the server you wanted it to be, back on the `Discrod Developer Portal`, in the `Bot` page, you'll find a button `Reset Token`. Click on it and then your token will be displayed. __Make sure to save it, it'll be showed one time only__.\n\n\u003e [!note]\n\u003e ### How to get the ID of your Server ?\n\u003e On Discord, you'll have to go to your `user settings` and in the `Advanced` tab. In there, you'll have to turn on the `Developer Mode`.\n\u003e\n\u003e Then make a right click on the server you want the bot in and at the bottom of the context menu, you'll find the possibility to copy the ID of the server.\n\n## How to run the bot\n1. Clone the repository\n```bash\ngit clone https://github.com/NamelessProj/My-First-Discord-Bot.git\n```\n2. Create a virtual environment\n```bash\npython -m venv venv\n```\n3. Activate the virtual environment\n```bash\n# Windows\nvenv\\Scripts\\activate\n# Linux\nsource venv/bin/activate\n```\n4. Install the dependencies\n```bash\npip install -r requirements.txt\n```\n5. Create a `.env` file in the root of the project and add everything from the [`.env.example`](/.env.example) file.\n6. Run the bot\n```bash\npython main.py\n```\n\nEverytime you want to run the bot, you'll have to activate the virtual environment and run the bot _(step 3 and 6)_.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamelessproj%2Fdiscordbot_boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnamelessproj%2Fdiscordbot_boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamelessproj%2Fdiscordbot_boilerplate/lists"}