Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@botdash.pro/v2

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@botdash.pro/v2

Create a dashboard for your discord bot

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

BotDash.pro/v2

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/v2'); //Require botdash.pro
const discord = require('discord.js'); //Require Discord.JS
const client = new discord.Client(); //Create a discord bot client
var dashboard = ""; //Declare variable
client.login("--- DISCORD BOT TOKEN ---"); //Login to the bot client
client.on('ready', () => { //Client is ready
    console.log("ready"); //print messageclient
    dashboard = new botdash.Client("--- BOTDASH TOKEN ---"); //Connect to botdash with a discord.js 
});
client.on('message', async function(message) { //Discord message recieved
    const prefix = await dashboard.get(message.guild.id, "botprefix"); //Get a value (getVal still works!)
    if (message.content == `${prefix}ping`) { //Simple ping command with customizable prefix
        message.channel.send('pong'); //Send pong back 
    }
});

FAQs

Package last updated on 03 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc