Getting Started¶
This section will explain how to install NodeJS, setup a Bot Project within DBB as well as create and invite your Discord Bot!
Installing Node.js
-
In order to allow your bot to run, you will need to install Node.js:
-
Installing on Windows
- Click here to download the installer for the LTS version of Node.js.
- Follow the installer's instructions
Create Your First Project
-
- Start DBB. You will be greeted with this screen:
-
- 2, Click on Create New Project. You should now have this screen:
-
After these Steps, you now have a Temporary Project opened in which you can start creating your Bot.
-
To Make sure that you progress is not lost after a restart, you can save your Project by clicking on the
Save
Button in the Top Left Corner in theProject
Menu. -
Then, a Window Pops up in which you can go into the Folder you want to the Save the Project in and then also set a Project Folder name. After that you can click on
Save
.
Create a New Bot Account and Set it Up in DBB
-
- Go to the Discord Developer Portal and do the following things:
-
- Create a New Application with the name of your Choice
- Go to "Bot", and click "Add Bot"
- After that you go down and enable the 3 "Privileged Gateway Intents"
- Disable Public bot, to make the bot only inviteable via the URL
- Copy the Bot Token and save it for later...
(Note: MAKE SURE TO KEEP THE TOKEN SECRET AT ALL TIMES! IF SOMEBODY GETS THE BOT TOKEN, THEY CAN ACCESS AND ABUSE YOUR BOT!)
- Create a New Application with the name of your Choice
-
Input it into DBB. Do this by selecting the Bot menu in the toolbar at the top of the screen and selecting Set Bot Token. Then paste the token and hit Enter or click OK. -
Now you need to invite the bot to your server. You can get a Link by Going into the Discord Developer Portal, selecting your Application, going to OAuth2, and then selecting the
bot
andapplication.commands
(Slash Commands) scope. After that you can select the permissions you want to give the bot and then copy the link.
Image | Description |
---|---|
![]() |
Open the invite link and select your server. |
![]() |
Adjust the bot's permissions and click Authorize. |
![]() |
Complete reCAPTCHA and verify the invitation. |
- That means you're all set and the bot's now in your server.
Installing Mods
-
Installing Mods is really important for DBB, cause all the Docs Pages rely on the Mods, since they work the best and provide the best features!
Set Intents
-
DBB comes with a Problem by not setting all Privileged Intents of Discord by Default, to change that you need to do the following:
-
Don't Forget to change your Intents on the Discord Developer Portal
Important
Without an event, your command will never work! Events are the only blocks that have no "Action Connection" input since they get triggered by the bot itself.
The line types must match to connect two blocks.
On the Output side of the block, there can be as many connections to one point as you like (except on the action type).
On the Input side of the block, there can always only be one connection per point.
Good to know
Server = Guild
User ≠ Member
A member is a user that is relevant to the guild only. You can execute actions to do with a specific server with a member.