Discord Bot Studio
  • Discord Bot Studio Documentation v2.0
  • Setting Up DBS
    • Create and Setup Bot With DBS [video]
    • Getting Started with DBS [text]
    • Inviting a Discord Bot to Your Server
    • Enabling Intents
    • Finding Your Bot Token
    • Using the Bot Editor
  • Response Nodes (by type)
    • Message Category
      • Send Message
      • Send Image
      • Send Embed
      • Delete Message
      • Check if Message is in Channel
    • Reaction Category
      • Add Reaction Listener
    • Variable Category
      • Store Value in Variable
      • Edit Variable
      • Check Variable Value
      • Check if Variable Exists
      • Generate Random Number
      • Get Mentioned User
    • User Data Category
      • Set User Data
      • Get User Data
      • Edit User Data
      • Check User Data
    • User Action Category
      • Add Role to User
      • Remove Role from User
    • Control Category
      • Wait
      • Switch Case
      • Multiple Input
    • Interaction Category
      • Reply To Interaction With Message
      • Get Interaction Option
      • Delete Interaction Reply
    • External Category
      • Call API
  • Running/Hosting Your Bot
    • Hosting your bot 24/7
    • Running Bot Locally
    • Multiple Bots
  • Commands
    • Message Commands
    • Kick / Ban Command
    • Purge Command
    • Role reaction menu
    • XP System
    • Ticket System
    • Command Aliases
  • Events
    • Overview
    • Event Types
      • User Joins Server
      • Any Message
      • Bot Initialization
      • Channel Create
      • Channel Delete
      • Channel Update
  • Misc
    • How to use custom emojis
    • Buttons and Selects
      • Determining which button was clicked
    • Slash Commands
    • Tagging a role
    • Tagging a channel
  • Mods
    • Creating Mods
    • Installing Mods
  • Spreadsheets
    • Using Spreadsheet Data
Powered by GitBook
On this page
  • Commands & Intro
  • Events

Was this helpful?

  1. Setting Up DBS

Using the Bot Editor

This page will detail how you can use the flowchart style editor to begin creating bots with Discord Bot Studio.

PreviousFinding Your Bot TokenNextMessage Category

Last updated 4 years ago

Was this helpful?

DBS offers two main pages for editing your bot: Commands and Events. They are similar in the way they work, in that you connect nodes in a flowchart style.

Commands & Intro

We will begin on the Commands page. Get there from the home screen by clicking "Commands" in the upper right navigation bar.

When you load your first bot (if you haven't made a bot yet please see the first tutorial on this site) you will see something like this on the commands page.

The darker blue boxes on the left represent commands, and the lighter blue boxes are responses. The command is what a user will type in the server to trigger the responses that are connected to it. For example, if a user types !help (assuming the prefix is !), then the "help menu" response will be triggered. You can connect any number of response to a command. If you run the bot with these default commands, you can test them out in a server to get a feel for how they work.

To open a node (a box), simple double click it on the colored header area. Doing so will automatically bring up a window where you can edit the details of this node.

Once you are done editing the information, you can click save in the bottom right to save and close this window.

To add a new command or response, simply click "Add Command" or "Add Response" from the button bar at the top.

To connect two nodes, you can click the output of a node, release click, then drag to the input of another node, once there, click again to connect.

Make sure you click "Save Flow" after making node connections to make sure they are saved!

Events

The Events page is very similar in look and feel to the Commands page. Here is what you will see when you first load the Events page for a new bot.

The pink nodes are the available server events which you can connect responses to, similar to the commands.

  • User Joins Server - this event is fired when a new user joins the server. Connect responses to this to create a welcome message for new users.

  • User Kicked - this event is fired when a user is kicked or leaves the server.

  • User Banned - this event is fired when a user is banned from the server.

  • Any Message - this is fired when any message is sent, even if it doesn't contain the prefix for commands. This is great for things like XP systems, where you want to give users xp for each message they send.

  • Bot Initialization - this fires when the bot starts running.

Unlike commands, you cannot add any more events to this screen.

Adding a new response and connecting it to a command