dbd.js - Library that simplifes coding for your Discord Bot.
npm install dbd.js
Aiming to be the easiest package to learn
It's swift and flexible using functions
``js
const dbd = require("dbd.js")
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`
})
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.
`js`
bot.variables({
VariableName1: "Value", //Returns "Value"
VariableName2: "Value2" //Returns "Value2"
})
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.
`js<@$authorID> just joined, welcome!
bot.joinCommand({
channel: "Channel ID", //Enter a Channel ID
code: //This can be changed`
})
bot.onJoined()
With easy and simple functions, you can make Slash Commands with your Bots quick!
`js$createSlashCommand[$guildID;version;Returns DBD.js Version]
bot.command({
name: "slash",
code: $interactionReply[$packageVersion]
})
bot.interactionCommand({
name: "version",
code: `
})
bot.onInteractionCreate()
More Information in our Documentation
#### Music
With our powerful Package, we incorporated Music with several functions.
We allowed customization and control over what you want.
#### Music Setup Example
`js$playSong[song;leave vc time;defean (yes or no);leave when vc empty (yes/no);error]
bot.command({
name: "play", //Trigger name (command name)
code: ``
//Code
})
More Information in our Documentation