Skip to content

Leref/dbd.ts-documentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✨ dbd.ts

Discord Server NPM Version NPM Downloads
DBD.TS is a simple feature-rich package for creating Discord bots.

dbd.ts

⚙️ Installation

Node.JS 16.6.0 or newer is required.

npm install dbd.ts

🛠️ Main File

Once DBD.TS has been installed, you can paste-in and modify this example in your index.js file.

const dbd = require("dbd.ts")

const bot = new dbd.Bot({
    intents: ["GUILDS", "GUILD_MESSAGES"],
    prefix: "PREFIX"
})

bot.addEvent([
    "onMessage",
    "onInteraction"
])

bot.commands.add({
    type: "basicCommand",
    name: "ping",
    code: `🏓 Pong! $pingms`
})

bot.commands.add({
    type: "basicCommand",
    name: "eval",
    code: `$onlyForIDs[$botOwnerID;]
$eval[$message]`
})

bot.login("TOKEN")

'PREFIX' must be replaced with a prefix. 'TOKEN' must be replaced with your bot's token.

🔧 Support

If you need support or have questions, you can join our Discord Server. We are happy to help!