🦰Setting up the bot

Creating your own bot

Create a bot

First create your own bot on the discord developer portal. You will see this screen below and click on New Application

Now give your bot a name, the name you it to be.

Invite the bot to your discord

Now go to the OAuth2 -> Url Generator to invite your bot. Select bot and copy the generated url and paste it into your browser. And choose for Bot Permissions Administrator.

Now on the page select in which server you would like to invite the bot. If your done with that, then start with configuring the bot.

Configuring the bot to the Software

To begin, open the folder of your site where the software files are located. Look for and open the 'config.php' where you will need to follow these simple steps to configure it.

search the section 'DISCORD CONFIGURATION'

// ============================================================ //
//                   DISCORD CONFIGURATION                      //
// ============================================================ //
// https://docs.devbybit.com/blackout-license-software/installation/setting-up-the-bot

define('BOT_TOKEN', 'PUT_YOUR_BOT_TOKEN'); 
define('CLIENT_SECRET', 'PUT_YOUR_BOT_SECRET'); 
define('CLIENT_ID', 'PUT_YOUR_BOT_ID');

define('GUILD_ID', 'PUT_YOUR_SERVER_GUILD_ID'); // YOUR SERVER DISCORD ID 
define('MEMBER_ROLE_ID', 'PUT_YOUR_MEMBER_ROLE_ID'); // [OPTIONAL]

Place the corresponding data in each 'define' so that it works correctly. Below you can see how to obtain this data. BOT TOKEN OF THE BOT:

BOT CLIENT SECRET:

BOT CLIENT ID:

Finally, and most importantly, let's make Discord accept logins with the API. Simply configure our 'redirects' in the same section.

Now simply click on 'save changes' and you're all set. If you have configured the config.php or in the installer, it should be working now.


Done.

Regards, Vuhp 📀

Last updated