Many people will want to self host their own version of our code because they want to theme it to their own standards by applying a custom profile picture and name to the bot, or want to make changes to our code, this will teach you how to do this.
Clone this repository onto your computer by either using GitHub Desktop, downloading with HTTPS or directly downloading from this page.
To make the code become a bot user and interact with the API, we need to create an application. To do this, navigate to Discord's Developer Portal and create a new application
Name your application whatever you want, for the purpose of this tutorial, I will name mine Test Bot. Once you have done this, go ahead and press Create
Once you have done this, go to the Bot tab, from here, press the Add Bot button
and confirm the action by pressing Yes, do it!.
You have now created a bot, you can change the name and profile picture of this bot at anytime by coming back to this page.
A token is the equivalent of a password, do not give this token to anybody else. We use this token so we can get the code to login to the bot, this means that anybody you share this token with can also login to your bot. To copy your token, press the copy button
The token of the bot is now copied to your clipboard.
At this point in time, we have a config.json, however, it is not used. So instead, open up main.py and scroll to the very bottom, the very bottom line should be
client.run('TOKEN')
Replace TOKEN with your actual token, for example, I would replace TOKEN with NzQzMzg2OTQxNTUwMTAwNTEy.XzT7Cg.Cpsg3zOR3frBRCuFj-3YBgE9gEE (not a real token).
Once this is complete, you can now run main.py and your bot will appear online.
Now we need to get the bot into your server, as we cannot use it yet. To do this, go back over to the Discord Developer Portal and click on your application (if not already opened), then, click the OAuth2 category.
Now tick the bot box under the Scopes category, and scroll down.
Tick the Administrator box and then copy the link that appears above and paste it into a new tab.
Now you can invite your bot to the server like you would any other bot.

.png)
.png)
.png)
.png)

.png)
.png)
.png)