DanBot

A guide on hosting your d.js-BDScript bot with DanBot!

Creating A Account

In order to create a account, you must run: DBH!user new in DanBot's Discord Server. Then, provide the info needed to create a account.

Creating A Server

You can create a server by running: DBH!server create NodeJS in the server.

Setup

1: Go to the hosting panel, and login using your new account credentials.

2: Select the server you created.

Example Server

3: Make sure you are using NodeJS 14. This setting can be found in the 'Startup' tab.

Select: quay.io/parkervcp/pterodactyl-images:debian_nodejs-14

4: Create a index.js file, with the code below.

const bdjs = require("d.js-bdscript")
const bot = new bdjs({
    token: "token",
    prefix: "prefix",
    intents: "all"
})

bot.login()
bot.addEvent("onMessage")
bot.command({
    type: "command",
    name: "say",
    code: "$message"
})

Replace 'token' with the bot's token, and 'prefix' with it's prefix.

Do this after inputting the code above.

5: Create a package.json file, and input the code below.

{
  "name": "name",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "engines": {
    "node": "14.x"
  },
  "license": "ISC",
  "dependencies": {
    "d.js-bdscript": "^5.0.0" // Make sure this is the latest version!
  }
}
Do this after pasting in the package.json code.

6: Start your bot! Click the 'Start' button.

Be patient! This may take a few minutes, especially the first time.

Last updated

Was this helpful?