Bot Options
Example With Additional Options
const dbd = require("dbd.ts")
const bot = new dbd.Bot({
intents: ["GUILDS", "GUILD_MESSAGES"],
prefix: "!",
ignoreAllErrors: true,
insensitive: true,
reverseReading: true,
internalSharding: false
})
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")Options
ignoreAllErrors
insensitive
intents
internalSharding
prefix
reverseReading
token
Last updated
Was this helpful?