BotDash.pro/v2
Get started making amazing discord bot dashboard's. You're just one click away
Get Started (Discord.JS)
- Create an acount on https://botdash.pro/premium
- Create your first project.
- Go to the editor and add your first category
- Create your first setting (Set database storage ID to "botprefix" so the example will work without much changes)
- Return to your admin dashboard
- Go to settings and copy the API token to somewhere safe.
- 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.
- In the admin dashboard turn Maintenance to off.
Enjoy
const botdash = require('botdash.pro/v2');
const discord = require('discord.js');
const client = new discord.Client();
var dashboard = "";
client.login("--- DISCORD BOT TOKEN ---");
client.on('ready', () => {
console.log("ready");
dashboard = new botdash.Client("--- BOTDASH TOKEN ---");
});
client.on('message', async function(message) {
const prefix = await dashboard.get(message.guild.id, "botprefix");
if (message.content == `${prefix}ping`) {
message.channel.send('pong');
}
});