botdash-pro

Create a dashboard for your discord bot

Usage no npm install needed!

<script type="module">
  import botdashPro from 'https://cdn.skypack.dev/botdash-pro';
</script>

README

BotDash.pro

Get started making amazing discord bot dashboard's. You're just one click away

Get Started (Discord.JS)

  1. Create an acount on https://botdash.pro/premium
  2. Create your first project.
  3. Go to the editor and add your first category
  4. Create your first setting (Set database storage ID to "botprefix" so the example will work without much changes)
  5. Return to your admin dashboard
  6. Go to settings and copy the API token to somewhere safe.
  7. Copy the code below and change bot token with your discord bot token and api token with the API token you just saved somewhere safe.
  8. In the admin dashboard turn Maintenance to off.

Enjoy

const botdash = require('botdash.pro'); //Require botdash.pro

const discord = require('discord.js'); //Require Discord.JS

const client = new discord.client(); //Create a discord bot client

client.login("BOT TOKEN HERE"); //Login to the bot client

client.on('ready', () => { //Client is ready
    
    console.log("ready"); //print message
    
    const dashboard = new botdash.APIClient("YOUR API TOKEN HERE"); //Connect to botdash with a discord.js client
});
client.on('message', async function(message) { //Discord message recieved
    
    const prefix = await dashboard.getVal(message.guild.id, "botprefix"); //Get a value
    
    if (message.content == `${prefix}ping`) { //Simple ping command with customizable prefix
        
        message.channel.send('pong'); //Send pong back
        
    }
});