1// Discord client setup
2const client = new Discord.Client();
3// dotenv
4require('dotenv').config();
5// Dashboard package
6const dashboard = require("discord-bot-dashboard");
7
8// ...
9client.on('ready', () => {
10
11 dashboard.run(client, {
12 port: your_open_port,
13 clientSecret: your_client_secrect,
14 redirectURI: your_redirect_uri
15 });
16 //...
17
18});
19//...