🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

dbd.js-lite

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

dbd.js-lite

DBD.JS-lite - Less heavy package that simplifes coding for your Discord Bot.

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

dbd.js-lite

DBD.JS-lite

NPM Downloads Discord Server

Table Of Contents

About

DBD.JS-lite is a package that aim to allows you to make your Discord Bots with Ease.

As DBD.JS is becoming bigger, DBD.JS-lite is created to be less heavy, removal of Music and cleaned up Code. Less Heavy and better for Hosting Services.

Aiming to be the easiest package to learn
It's swift and flexible using functions

Examples

Setup

const dbd = require("dbd.js-lite")

const bot = new dbd.Bot({
token: "TOKEN", //Discord Bot Token
prefix: "!" //Customizable
})
bot.onMessage() //Allows to run Commands

bot.command({
name: "ping", //Trigger name (command name)
code: `$ping Pong!` //Code
})

Variables

What are variables? They can be used for many things, especially allowing to save data.

This allows to create potential currency system, level system, etc.

bot.variables({
  VariableName1: "Value", //Returns "Value"
  VariableName2: "Value2" //Returns "Value2"
})

Callbacks

What are callbacks?

It's simple and easy process, it essentially allows you to run events, such as user joining a Guild. This will trigger a event, causing a code to be executed such as.

bot.joinCommand({
        channel: "Channel ID", //Enter a Channel ID
        code: `<@$authorID> just joined, welcome!` //This can be changed
})
bot.onJoined()

Additional Support

Slash Commands

With easy and simple functions, you can make Slash Commands with your Bots quick!

bot.command({
    name: "slash",
    code: `$createSlashCommand[$guildID;version;Returns DBD.js Version]`
})
bot.interactionCommand({
    name: "version", 
    code: `$interactionReply[$packageVersion]`
})
bot.onInteractionCreate()

More Information in our Documentation

Credits

DBD.JS-lite was made by Leref.

Keywords

dbd.js

FAQs

Package last updated on 21 Apr 2021

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