Customizing and Authorizing Bot
Our bot is created it’s time to give permissions and define scopes of the bot. Permission refers to what our bot can do on the server, for example, sending messages. Scope refers to what role the bot will perform.
Step 1: Click on OAuth2 and click on URL Generator you will see multiple checkboxes referring to different scopes. For this bot, we are going to use bot only scope click on Bot checkbox.
Step 2: Next checkboxes are permission for our box. We are going to give this bot permission to send and reply to messages so check all the boxes related to that. You can always change these permissions later and generate a new URL.
Note: If you want to code slash commands, make sure to choose applications.commands as well in Step 1.
Step 3: Scroll down and you can see a URL generated for the bot click on the copy to copy this URL.
Step 4: Paste copied URL in a new tab here we are going to authorize our bot with the server. Choose the server we created earlier and click on continue.
Step 5: Here you will see the permissions of the bot. If you want you can edit these, click on Authorise
Step 6: Verify that you are a human with a captcha and the bot should be authorized now.
Step 7: Go to the server and you can see the name of the bot appearing in the list of offline people.
Creating a Discord Bot in Python
If you are familiar with online communities and if you are a part of one or you own one, you must have heard about discord and in discord, you may have seen bots managing those communities. So in this article, we are going to set up our discord developer portal account and will create a discord bot. A minimal bot with basic functionalities and if you want you can always extend the functionalities of this bot according to your needs.
Contact Us