{"id":50565270,"url":"https://github.com/uiu-developers-hub/discord-bot-development","last_synced_at":"2026-06-04T14:01:01.492Z","repository":{"id":358162347,"uuid":"1233648976","full_name":"UIU-Developers-Hub/Discord-Bot-Development","owner":"UIU-Developers-Hub","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-30T20:01:39.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-30T21:13:56.165Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UIU-Developers-Hub.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-09T07:27:20.000Z","updated_at":"2026-05-30T20:01:43.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/UIU-Developers-Hub/Discord-Bot-Development","commit_stats":null,"previous_names":["uiu-developers-hub/discord-bot-development"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/UIU-Developers-Hub/Discord-Bot-Development","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UIU-Developers-Hub%2FDiscord-Bot-Development","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UIU-Developers-Hub%2FDiscord-Bot-Development/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UIU-Developers-Hub%2FDiscord-Bot-Development/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UIU-Developers-Hub%2FDiscord-Bot-Development/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UIU-Developers-Hub","download_url":"https://codeload.github.com/UIU-Developers-Hub/Discord-Bot-Development/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UIU-Developers-Hub%2FDiscord-Bot-Development/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33907694,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"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":[],"created_at":"2026-06-04T14:01:00.469Z","updated_at":"2026-06-04T14:01:01.486Z","avatar_url":"https://github.com/UIU-Developers-Hub.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ultimate-Discord-Bot-Development-Guide: Learn and Build Discord Bots\n---\n\n## Overview\n\nA simple open source repo for learning Discord bot development. It includes guides, examples, and small projects to help beginners start making Discord bots. Started by [@shellmonbhai](https://github.com/shellmonbhai) and maintained by [@UIU-Developers-Hub](https://github.com/UIU-Developers-Hub).\n\n---\n\nWelcome to Discord-Bot-Development-Guide.\nThis repo is made for students and new developers who want to learn how Discord bots work and how to build them step by step.\n\nHere you will find easy examples, useful commands, bot features, and clean project structures. The goal is to make learning simple and fun without making things confusing.\n\nYou can build moderation bots, music bots, utility bots, AI bots, and many other cool projects from here. Anyone can learn, practice, and also contribute to the repo.\n\n---\n\n## What Is a Discord Bot?\n\nDiscord keeps getting more popular. As servers grow, it gets harder to manage everything by hand. Tasks like banning users who break the rules or replying to common requests can take a lot of time. That's why automation becomes so useful.\n\nA Discord bot is a program that acts a lot like a regular user. It can watch for events, respond to commands, and handle tasks on its own. Bots can be used for almost anything. In fact, there are nearly unlimited ways to use them. You can see plenty of examples on [top.gg](https://top.gg/).\n\nFor example, imagine you're running a new Discord server. A new member joins for the first time. You might be excited and send them a welcome message yourself. Maybe you point them to a few channels or ask them to introduce themselves.\nThe new member feels welcome and joins the conversation. If they enjoy the community, they may invite their friends too.\n\nAs time goes on, your server gets bigger. At some point, it becomes difficult to personally greet every new member. Still, you probably want each person to feel noticed when they join.\nThis is where a bot can help. It can automatically welcome new members the moment they join. You can also decide how the bot should behave in different situations and what messages it should send.\nThat's just one simple example. Bots can do much more than welcome users. Once you learn how to build them, you'll find all kinds of ways to make your server more helpful, fun, and easier to manage.\n\n**Note:** Discord bots can work with voice features too, but this guide focuses only on text-based features.We'll discuss voice features later.\n\n### Two Main Steps to Create a Bot\n\nCreating a Discord bot comes down to two main steps:\n\n1. Create a bot account on Discord and add it to your server.\n2. Write code that uses Discord's API and tells the bot how to behave.\n\n---\n\n## How to Make a Discord Bot in the [Developer Portal](https://discord.com/developers/home)\n\nBefore you start writing any Python code, there are a few things you need to set up in Discord first:\n* A Discord account\n* An application\n* A bot\n* A server (guild)\n\nYou'll learn what each of these does in the next sections.\nOnce everything is ready, you'll connect them together and add your bot to your server.\nTo get started, open the [Discord Developer Portal](https://discord.com/developers/applications). That's where you'll create and manage your Discord applications and bots.\n\n**1. Creating a Discord Account**\n\nFirst, you will see a login page. You can log in if you already have an account. If not, you need to make a new one.\nClick the **Register** button under Login. Then fill in your details.\n\n\u003cimg width=\"1512\" height=\"881\" alt=\"image\" src=\"https://github.com/user-attachments/assets/9030ae5f-cfcf-42e7-8537-d4d4ed95686f\" /\u003e\n\n**Important:** You must verify your email before you go next.\n\nAfter that, you will be redirected to the Developer Portal home page. That is where you create your application.\n\n**2. Creating an Application**\n\nAn application lets you use Discord’s API. It also gives you things like auth tokens and permissions.\nTo start, click **New Application**.\n\n\u003cimg width=\"1230\" height=\"486\" alt=\"image\" src=\"https://github.com/user-attachments/assets/17f179e0-5d2e-4d6c-b176-49c4918a8c9c\" /\u003e\n\nNext, you will see a box to name your application. Pick a name you like. Then click **Create**.\n\n\u003cimg width=\"1255\" height=\"575\" alt=\"image\" src=\"https://github.com/user-attachments/assets/30b6915b-9769-4084-aec1-502f2b13a16e\" /\u003e\n\nCongrats. You just made a Discord application.\n\n\u003cimg width=\"1255\" height=\"702\" alt=\"image\" src=\"https://github.com/user-attachments/assets/e9df7b40-9ae0-4c7f-bd2a-1ba5e1a16e4c\" /\u003e\n\nKeep in mind, not every program that uses Discord needs a bot. All tools that use Discord API start with an application. Bots are just one part of it.\nSince this guide is about bots, click the **Bot** tab on the left side menu.\n\n\n**3. Creating a Bot**\n\nA bot is a user that can listen to things on Discord and react on its own.\nTo make your code work in Discord, you need to create a bot user. Click **Add Bot**.\n\n\u003cimg width=\"3021\" height=\"1761\" alt=\"image\" src=\"https://github.com/user-attachments/assets/894cc648-2625-4ffd-adfe-bfba4642b4f0\" /\u003e\n\n\n**Note:** This step used to be required earlier, but in the current Discord update, the bot is created automatically when you create an application.\n\n\n\u003cimg width=\"1876\" height=\"1037\" alt=\"image\" src=\"https://github.com/user-attachments/assets/5912fa3e-20f9-45cb-9851-c08050683f4a\" /\u003e\n\n\n**4. Adding a Bot to a Guild**\n\nA bot cannot join a server like a normal user. You cannot invite it the usual way.\nInstead, you use something called OAuth2 to add it.\nSimple idea: OAuth2 just helps Discord safely give your bot access.\nTo continue, go back to the Developer Portal. Then click the **OAuth2** tab on the left menu.\n\n\u003cimg width=\"1852\" height=\"1024\" alt=\"image\" src=\"https://github.com/user-attachments/assets/fb383d19-c15c-4692-9cda-6ae6d5a7f01a\" /\u003e\n\nFrom this page, you will see the **OAuth2 URL Generator.**\nThis tool makes a special link. That link lets Discord know your bot is allowed to join and act in a server.\nHere, you want to give your bot access.\nScroll down. Under **SCOPES**, tick **bot**. Then under **BOT PERMISSIONS**, select **Administrator**.\n\n\u003cimg width=\"1919\" height=\"1079\" alt=\"image\" src=\"https://github.com/user-attachments/assets/e1aba032-1734-4f78-aff8-8492abf66cf8\" /\u003e\n\nNow Discord makes a special link for your bot. It includes the scope and permissions you picked.\n**Quick note:** We used **Administrator** here just for learning. In real use, try to give only the permissions you really need.\nClick **Copy** next to the link. Then paste it in your browser. After that, choose your server (guild) from the list.\n\n\u003cimg width=\"1919\" height=\"1079\" alt=\"image\" src=\"https://github.com/user-attachments/assets/e6c218f8-3494-4aa9-9cbf-8261f7b98e30\" /\u003e\n\n\u003cimg width=\"1919\" height=\"1040\" alt=\"image\" src=\"https://github.com/user-attachments/assets/80da3807-3bb0-4f0f-b6ad-90baca04ad86\" /\u003e\n\nClick **Authorize**, and that’s it.\n\n**Note:** You may see a reCAPTCHA first. If it shows up, just complete it to prove you are human.\nNow go back to your server (guild). You will see your bot is added there.\n\n\u003cimg width=\"582\" height=\"760\" alt=\"image\" src=\"https://github.com/user-attachments/assets/c29db0a8-5915-4ed3-9449-72e084df01f0\" /\u003e\n\u003cimg width=\"529\" height=\"375\" alt=\"image\" src=\"https://github.com/user-attachments/assets/886e2617-da18-4c67-ba38-15bc3bb15ae7\" /\u003e\n\u003cimg width=\"1287\" height=\"461\" alt=\"image\" src=\"https://github.com/user-attachments/assets/2dd7b7f4-8d20-471c-9723-00dbd5719fff\" /\u003e\n\n\n**5. Privileged Gateway Intents**\n\nNow follow these steps:\na) In the left menu, click **Bot**.\nb) Scroll down to the section called **Privileged Gateway Intents**.\nc) You will see a few toggle options like:\n   * Presence Intent\n   * Server Members Intent\n   * Message Content Intent\nd) Turn ON the options you need.\n   Most common setup is:\n\n   * Turn ON **Server Members Intent** (so your bot can see when people join or leave)\n   * Turn ON **Message Content Intent** (so your bot can read messages and respond)\n   * Presence Intent is optional, only if you need status info\n\ne) After that, scroll down a bit.\nf) Click the green **Save Changes** button at the bottom right.\n\u003cimg width=\"1919\" height=\"1079\" alt=\"image\" src=\"https://github.com/user-attachments/assets/08a209ea-21ea-469e-8c55-1f73fb1a1bbe\" /\u003e\n\nDone. Your bot settings are now updated.\n\n---\n\nIn short, you have made:\n\n* An application that lets your bot connect to Discord API\n* A bot user that can talk and react inside your server\n* A server (guild) where you and your bot can stay and work\n* A Discord account that you used to set it all up\n* Turned ON the needed Privileged Gateway Intents\n\nNow you know the basic setup for a Discord bot using the Developer Portal. Next part is the fun one, you start building the bot with Python.\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n### 📖 Continue Reading\n\n\u003ca href=\"./README2.md\"\u003e➡️ Go to Page 2\u003c/a\u003e\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiu-developers-hub%2Fdiscord-bot-development","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuiu-developers-hub%2Fdiscord-bot-development","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiu-developers-hub%2Fdiscord-bot-development/lists"}