discord.js make a dashboard code example
Example: node.js discord dashboard
// Discord client setup
const client = new Discord.Client();
// dotenv
require('dotenv').config();
// Dashboard package
const dashboard = require("discord-bot-dashboard");
// ...
client.on('ready', () => {
dashboard.run(client, {
port: your_open_port,
clientSecret: your_client_secrect,
redirectURI: your_redirect_uri
});
//...
});
//...