Command Studio Guide

Create powerful custom commands and automated workflows for your Discord bots

Table of Contents

1. Overview 2. Getting Started 3. Command Types 4. Visual Flow Builder 5. Trigger Systems 6. Available Actions 7. Variables and Conditions 8. Advanced Features

Overview

Command Studio is Friendify's powerful visual command builder that allows you to create complex Discord bot interactions without coding. Build everything from simple responses to advanced automation workflows.

Key Features

  • Visual Flow Builder: Drag-and-drop interface for creating command logic
  • Multiple Trigger Types: Messages, reactions, user events, and scheduled triggers
  • Rich Actions: Send messages, manage roles, moderate users, and integrate with APIs
  • Conditional Logic: If/else statements, loops, and complex decision trees
  • Variable System: Store and manipulate data across command executions
  • Template Library: Pre-built command templates for common use cases
No Coding Required: Command Studio is designed for users of all skill levels. Create powerful bot functionality through an intuitive visual interface.

Getting Started

Access Command Studio from your bot dashboard to start creating custom commands.

Creating Your First Command

  1. Navigate to your bot dashboard
  2. Click on "Command Studio" in the sidebar
  3. Click "New Command" to open the builder
  4. Choose a command name and description
  5. Select a trigger type (slash command, message, etc.)
  6. Add actions using the visual builder
  7. Test your command in the preview panel
  8. Save and deploy to your bot
/welcome
A simple welcome command that greets new users
Trigger: Slash Command "/welcome"
Action: Send Message "Welcome to our server! 👋"
Quick Start: Use the template library to get started with pre-built commands for common scenarios.

Command Types

Command Studio supports various types of commands to suit different use cases.

Slash Commands

Traditional Discord slash commands with parameters and options

Message Commands

Respond to specific message content, keywords, or patterns

Event Commands

Trigger on user join/leave, role changes, and other Discord events

Scheduled Commands

Run commands on a schedule or at specific times

Command Examples

/poll
Create interactive polls with reactions
/poll question:"What's your favorite color?" options:"Red,Blue,Green"
Auto-Moderation
Automatically moderate messages containing banned words
Trigger: Message Content Contains "badword"
Actions: Delete Message → Warn User → Log to Channel
Daily Reminder
Send daily motivational messages
Trigger: Schedule "Daily at 9:00 AM"
Action: Send Message with Random Quote

Visual Flow Builder

The heart of Command Studio is the visual flow builder, where you create command logic through drag-and-drop nodes.

Flow Components

1
Trigger Node
The starting point that defines when your command runs
2
Condition Nodes
Check variables, user permissions, or other conditions
3
Action Nodes
Perform actions like sending messages, managing roles, or calling APIs
4
Variable Nodes
Store, modify, or retrieve data for later use
Visual Editor: Connect nodes by dragging lines between them. The flow executes from top to bottom, following your connections.

Advanced Flow Features

  • Parallel Execution: Run multiple actions simultaneously
  • Loops: Repeat actions for lists or arrays
  • Try/Catch: Handle errors gracefully
  • Delays: Add time delays between actions
  • Subflows: Create reusable command components

Trigger Systems

Triggers define when and how your commands are executed. Choose from various trigger types to suit your needs.

Message Triggers

  • Exact Match: Trigger on specific message content
  • Contains: Trigger when message contains keywords
  • Starts/Ends With: Pattern matching for message prefixes/suffixes
  • Regular Expressions: Advanced pattern matching
  • Mentions: React when bot or specific users are mentioned
Example Patterns: - Exact: "hello bot" - Contains: "*help*" - Regex: "/^!(\w+)/" - Mention: "@BotName *"

Event Triggers

  • Member Join/Leave: Welcome messages and goodbye notifications
  • Role Changes: React to role assignments or removals
  • Channel Events: New channels, channel updates
  • Reaction Events: React to emoji reactions on messages
  • Voice Events: User joins/leaves voice channels

Scheduled Triggers

  • Interval: Run every X minutes/hours/days
  • Cron Expression: Complex scheduling patterns
  • One-time: Run at a specific date and time
  • Recurring: Daily, weekly, monthly patterns
Cron Examples: - "0 9 * * *" - Every day at 9:00 AM - "0 0 * * 1" - Every Monday at midnight - "*/15 * * * *" - Every 15 minutes

Available Actions

Actions are the building blocks of your commands. Combine them to create powerful bot behaviors.

Message Actions

  • Send Message: Send text, embeds, or files to channels
  • Edit Message: Modify existing messages
  • Delete Message: Remove messages from channels
  • React to Message: Add emoji reactions
  • Pin/Unpin Message: Manage pinned messages

User Management Actions

  • Add/Remove Roles: Manage user roles
  • Kick/Ban Users: Moderation actions
  • Timeout Users: Temporary mute functionality
  • Send DM: Private message users
  • Change Nickname: Modify user nicknames

Channel Management Actions

  • Create Channel: Make new text/voice channels
  • Delete Channel: Remove channels
  • Update Permissions: Modify channel permissions
  • Set Slowmode: Enable message rate limiting
  • Archive Threads: Manage thread channels

External Integration Actions

  • HTTP Request: Call external APIs
  • Webhook: Send data to external services
  • Database Query: Store/retrieve custom data
  • File Upload: Upload files to external storage
  • AI Generation: Generate text or images with AI

Variables and Conditions

Use variables to store data and create dynamic command behavior based on conditions.

Built-in Variables

{user.id} ID of the user who triggered the command
{user.name} Username of the triggering user
{channel.name} Name of the current channel
{server.name} Name of the Discord server
{message.content} Content of the triggering message
{random.number} Random number between 1-100
{date.now} Current date and time

Custom Variables

  • Set Variable: Store values for later use
  • Get Variable: Retrieve stored values
  • Increment/Decrement: Modify numeric values
  • Array Operations: Add, remove, or modify list items
  • String Operations: Concatenate, split, or format text
Variable Examples: - {user_points} = Get Variable "points_" + {user.id} - {welcome_count} = Increment Variable "server_welcomes" - {random_quote} = Array Random "motivational_quotes"

Conditional Logic

  • If/Else: Branch execution based on conditions
  • Switch/Case: Multiple condition branches
  • Comparison Operators: Equal, greater than, less than, contains
  • Logical Operators: AND, OR, NOT combinations
  • Permission Checks: Verify user roles and permissions
Condition Examples: - {user.roles} contains "Admin" - {message.content} length > 100 - {user_points} >= 1000 - {channel.name} equals "general"

Advanced Features

Unlock the full potential of Command Studio with these advanced capabilities.

Command Templates

Pre-built command templates for common Discord bot functionality:

  • Welcome System: Greet new members with custom messages
  • Reaction Roles: Assign roles based on emoji reactions
  • Moderation Suite: Automated warning and punishment system
  • Economy System: Points, currency, and rewards
  • Ticket System: Support ticket creation and management
  • Announcement System: Schedule and send announcements

Error Handling

  • Try/Catch Blocks: Handle errors gracefully
  • Fallback Actions: Alternative actions when primary fails
  • Error Logging: Log errors for debugging
  • User Notifications: Inform users of errors appropriately

Performance Optimization

  • Command Cooldowns: Prevent spam and abuse
  • Rate Limiting: Control command execution frequency
  • Caching: Store frequently accessed data
  • Async Operations: Non-blocking command execution
Resource Limits: Commands have execution time limits (30 seconds) and memory constraints to ensure server stability.

Testing and Debugging

  • Command Simulator: Test commands without deploying
  • Debug Mode: Step-by-step execution tracking
  • Variable Inspector: Monitor variable values during execution
  • Execution Logs: Detailed logs of command runs
  • Performance Metrics: Track command execution times
Best Practices: Always test your commands in a development server before deploying to production!