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.

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


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.





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!
}
}





6: Start your bot! Click the 'Start' button.
Be patient! This may take a few minutes, especially the first time.

We do not control DanBot, or its uptime/downtime.
We are not sponsored nor endorsed by DanBot.
Last updated
Was this helpful?