BadgerStaffPanel
Setting up BadgerStaffPanel
Discord Application Configuration
Navigate to https://discordapp.com/developers/applications
Click on
New Application
then name the bot what you would like
Click
Copy
under theClient ID
on the page. Then replace{CLIENT-ID}
within theconfig.php
fileClick
Copy
under theClient Secret
on the page. Then replace the{CLIENT-SECRET}
within theconfig.php
fileClick on
OAuth2
within the side navigation barAdd your website's URL as a redirect, for example we will use
http://localhost
for a locally hosted websiteYou will then want to generate a discord authorization link
To do this, navigate down to the
OAuth2 URL Generator
section, then select ourhttp://localhost
redirect URLNow we choose the options we need for the authorization URL, select
identify
,email
, andguilds
Now you will want to click the
Copy
button and copy the huge link that has been generatedNow we go back into our
config.php
file again
You now want to submit
http://localhost
where{REDIRECT-URI}
is locatedYou then want to submit the huge link you copied in the previous step and replace
{DISCORD-REDIRECT-AUTH}
with itYou now need to get the guild ID of your discord server
You will first turn on the developer mode in Discord to be able to do this (check below GIF)
Now you will need to copy your server's guild ID (check below GIF)
Now replace
{GUILD-ID}
with the guild ID you just got through your discord applicationWe now need to create a discord bot, navigate to
Bot
on the side navigationCreate the discord bot, confirm creating it
Now, click
Copy
and get the discord bot tokenReplace
{BOT-TOKEN}
within theconfig.php
file with the token you had just copiedInvite the discord bot to your server now by going to the
OAuth2
on the side navigation
Click
Copy
and then enter the URL in a browser, then invite this bot to your discord serverYou have now completed the discord application configuration section of BadgerStaffPanel
Server API Configuration
Replace
{SERVER-IP}
with the server IP of your serverReplace
80
with the port your website runs on (for most websites, the default port is port 80)Replace
{STEAM-API-KEY}
with the steam API key you get from a key you get from https://steamcommunity.com/dev/apikeyReplace
30120
with the port of your FiveM server (for most servers, the default port is 30120)Replace
{RCON-PASSWORD}
with the RCON password within yourserver.cfg
fileReplace
{SERVER-NAME}
with your server's nameYou have now completed the server API configuration section of BadgerStaffPanel
SQL Configuration
Website Permissions Configuration
Replace
{T-MOD-RANK}
with the role ID of the T-Mod rank in your discord serverReplace
{MOD-RANK}
with the role ID of the Mod rank in your discord serverReplace
{ADMIN-RANK}
with the role ID of the Admin rank in your discord serverReplace
{MANAGEMENT-RANK}
with the role ID of the Management rank in your discord server
Last updated