kmfkflorida.blogg.se

Discordbots
Discordbots




How to Code a Basic Discord Bot with the discord.py Library Now that you've created the bot user, we'll start writing the Python code for the bot. To add the bot, your account needs "Manage Server" permissions. Paste the URL into your browser, choose a server to invite the bot to, and click “Authorize”. That will copy a URL which can be used to add the bot to a server. Be careful with the "Administrator" permission.Īfter selecting the appropriate permissions, click the 'copy' button above the permissions. You may need more depending on what you want your bot to do. Our bot is going to mainly use text messages so we don't need a lot of the permissions. Now choose the permissions you want for the bot. Then select "bot" under the "scopes" section. To do this, you should create an invite URL for it. Now you have to get your Bot User into a server. You can regenerate the token if it accidentally gets shared. It could allow someone to log in to your bot and do all sorts of bad things. This token is your bot's password so don't share it with anybody. Keep the default settings for Public Bot (checked) and Require OAuth2 Code Grant (unchecked). You will have to confirm by clicking "Yes, do it!" Go to the “Bot” tab and then click “Add Bot”.

discordbots

Give the application a name and click “Create”.ĥ. Make sure you’re logged on to the Discord website.ģ.

discordbots

Here are the step to creating a Discord Bot account.ġ. In order to work with the Python library and the Discord API, we must first create a Discord Bot account. The video is embedded below and the written version is after the video. There is also a video version of this written tutorial. We are going to use a number of tools, including the Discord API, Python libraries, and a cloud computing platform called. You do not need to install anything on your computer, and you do not need to pay anything to host your bot. This tutorial will show you how to build your own Discord bot completely in the cloud.






Discordbots