DBD.TS is a simple feature-rich package for creating Discord bots.
Node.JS 16.6.0 or newer is required.
npm install dbd.ts
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.
If you need support or have questions, you can join our Discord Server. We are happy to help!